You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Hyperstack is a disciplined engineering harness for AI coding agents.**
27
27
28
-
It provides the necessary **Ground Truth** (via 79 specialized MCP tools) and **Adversarial Enforcement** (via 21 rigorous skills) to transform a generic LLM into a high-precision Senior Engineer.
28
+
It provides the necessary **Ground Truth** (via 79 specialized tool calls) and **Adversarial Enforcement** (via 21 rigorous skills) to transform a generic LLM into a high-precision Senior Engineer.
29
29
30
30
Unlike standard "polite" instructions, Hyperstack uses **Iron Laws** and a **SessionStart hook** to force agents to check real documentation, follow precise design specs, and provide binary verification before shipping.
31
31
@@ -39,13 +39,13 @@ The fastest way to install Hyperstack is to let your AI agent do it for you. Thi
39
39
Fetch and follow the instructions at https://raw.githubusercontent.com/orkait/hyperstack/main/install.md
40
40
```
41
41
42
-
The autopilot will autonomously detect your environment, install the MCP server (Docker or Local), and **automatically link the Skills repository**. This is the only step required.
42
+
The autopilot will autonomously detect your environment, configure the local tool runtime, and **automatically link the Skills repository**. This is the only step required.
43
43
44
44
---
45
45
46
46
### 2. Manual Configuration (Advanced)
47
47
48
-
If you aren't using the Autopilot, follow the **Unified Bootstrap** to set up both the MCP server and the Skills:
48
+
If you aren't using the Autopilot, follow the **Unified Bootstrap** to set up both the local runtime and the Skills:
49
49
50
50
1.**Clone & Initialize**:
51
51
```bash
@@ -84,7 +84,7 @@ If you aren't using the Autopilot, follow the **Unified Bootstrap** to set up bo
84
84
85
85
It is not just a library; it is a **disciplined harness** made of three tightly-coupled layers:
86
86
87
-
1. **The Harness**: Bootstraps the agent, routes internal specialist roles (`hyper`, `website-builder`), and enforces global development invariants.
87
+
1. **The Harness**: Bootstraps the agent, routes internal specialist roles (`hyper`, `frontend-builder`), and enforces global development invariants.
88
88
2. **The MCP Ground Truth**: 12 TypeScript plugins (80 tools) that provide deterministic data. No hallucinated imports or invented component specs.
89
89
3. **The Adversarial Gates**: 21 skills with **"Enforcement Teeth"**. These aren't suggestions; they are Iron Laws supported by rationalization tables that counter every excuse an agent uses to skip quality gates.
90
90
@@ -127,41 +127,25 @@ graph TD
127
127
If you are an agent reading this, your mental model must be: **Process is Priority.** You are operating within a system that requires deterministic grounding and formal design before implementation.
128
128
129
129
- **Conductance**: `hyper` owners classification and gate verification.
130
-
- **Specialization**: `website-builder` handles visual and frontend implementation.
130
+
- **Specialization**: `frontend-builder` handles visual and frontend implementation.
131
131
- **Persistence**: You run in a stable Docker container with a persistent lifecycle.
132
132
133
133
---
134
134
135
135
## 🚀 Quickstart
136
136
137
-
### 🐳 Docker (Default)
137
+
### 💻 Local Runtime (Default)
138
138
139
-
Hyperstack uses a persistent container plus `docker exec`. This keeps startup cheap across sessions and ensures 100% environment stability.
139
+
Hyperstack now defaults to a local tool runtime backed by topology manifests and corpus navigation. Docker is no longer required for the standard setup path.
140
140
141
-
1. Pull the image:
142
-
143
-
```bash
144
-
docker pull ghcr.io/orkait/hyperstack:main
145
-
```
146
-
147
-
2. Start the persistent container:
148
-
149
-
```bash
150
-
docker rm -f hyperstack-mcp 2>/dev/null
151
-
docker run -d --name hyperstack-mcp --restart unless-stopped \
152
-
--memory=512m --cpus=1 \
153
-
--entrypoint sleep \
154
-
ghcr.io/orkait/hyperstack:main infinity
155
-
```
156
-
157
-
3. Add this to your MCP settings (`~/.claude.json`, Cursor, Windsurf, etc.):
141
+
Add this to your MCP or tool settings (`~/.claude.json`, Cursor, Windsurf, etc.):
After installing, the SessionStart hook (at `hooks/session-start.mjs`) will auto-inject the `using-hyperstack` skill into every session. No manual activation needed.
173
+
After installing, the SessionStart hook (at `hooks/session-start.mjs`) will auto-inject the `hyperstack` skill into every session. No manual activation needed.
190
174
191
175
### 💻 From source
192
176
@@ -204,9 +188,9 @@ Node 18+ required.
204
188
205
189
---
206
190
207
-
## 🧠 The Two-Layer System
191
+
## 🧠 The Three-Layer System
208
192
209
-
Hyperstack's strength comes from the friction between **Ground Truth** (MCP) and **Enforcement** (Skills).
193
+
Hyperstack's strength comes from the friction between **Ground Truth** (MCP), **Enforcement** (Skills), and **Orchestration** (Agents).
210
194
211
195
### Layer 1: MCP Plugins (Ground Truth)
212
196
@@ -236,13 +220,13 @@ Markdown with adversarial enforcement. Each skill contains an **Iron Law** that
236
220
237
221
These laws are backed by **Rationalization Tables**-pre-written counters to every excuse an AI agent uses to skip quality gates.
238
222
239
-
### Internal Harness (role routing + bootstrap)
223
+
### Layer 3: Agents (Orchestration & Routing)
240
224
241
-
The internal harness is what ties the public layers together:
225
+
The internal harness is what ties the public layers together by managing process and domains:
242
226
243
227
- bootstrap is injected at session start from generated runtime context
244
228
- `hyper` owns classification, routing, gates, and verification
245
-
- `website-builder` specializes inwebsite-facing design and implementation work
229
+
- `frontend-builder` specializes infrontend-facing design and implementation work
246
230
- roles are internal and auto-called, not user-invoked commands
247
231
248
232
<details>
@@ -285,7 +269,7 @@ The internal harness is what ties the public layers together:
285
269
286
270
| Skill | Role |
287
271
|---|---|
288
-
|`using-hyperstack`| Force-injected at session start via hook - the enforcement payload |
272
+
|`hyperstack`| Force-injected at session start via hook - the enforcement payload |
289
273
|`testing-skills`| RED-GREEN-REFACTOR pressure testing for skills using subagents |
290
274
291
275
</details>
@@ -309,17 +293,17 @@ Ordinary skill markdown is a polite suggestion. Polite suggestion fails when an
309
293
310
294
When you say, **“build me a SaaS dashboard”**:
311
295
312
-
1. **SessionStart** already puts in`using-hyperstack`, so AI know system is there.
313
-
2. **Blueprint skill**sees visual job and sends it to `hyperstack:designer`.
314
-
3. **Designer skill** runs `designer_resolve_intent(product)` to guess industry, personality, style, density, and mode.
296
+
1. **SessionStart** already puts in`hyperstack`, so AI know system is there.
297
+
2. **Blueprint skill**builds workspace understanding first and classifies the change.
298
+
3. If the route says a design contract is required, **Designer skill** runs `designer_resolve_intent(product)` to guess industry, personality, style, density, and mode.
315
299
4. Designer asks **3 questions**in base mode, or **12 questions**in advanced mode.
316
-
5. Like **Q11b** will ask what component library to use: shadcn, raw Tailwind, MUI, Mantine, Chakra, Ant Design, or custom.
317
-
6. Designer makes a **DESIGN.md** contract with 10 parts: theme, colors, type, spacing, components, motion, elevation, do/don’ts, responsive rules, and anti-patterns.
318
-
7. User approves the **DESIGN.md**.
319
-
8. **Forge-plan** reads it and makes one task for each section. If user picked shadcn, it calls `shadcn_get_component`. If not, it builds from the DESIGN.md spec.
300
+
5. Q11b asks what component library to use: shadcn, raw Tailwind, MUI, Mantine, Chakra, Ant Design, or custom.
301
+
6. Only when needed, Designer makes a conditional **DESIGN.md / design contract** with theme, colors, type, spacing, components, motion, elevation, do/don’ts, responsive rules, and anti-patterns.
302
+
7. User approves the design contract when the route requires it.
303
+
8. **Forge-plan** reads the routed artifacts and makes one task for each required area. Existing-project frontend logic work can stay workspace-first without forcing a design contract.
320
304
9. Build tasks run with MCP tools as ground truth.
321
-
10. **designer_verify_implementation** checks build against **DESIGN.md**.
322
-
11. **Ship-gate** blocks final completion unless build passes the **DESIGN.md** rules.
305
+
10. **designer_verify_implementation** checks build against the design contract when present.
306
+
11. **Ship-gate** blocks final completion unless build passes the required proof rules.
323
307
324
308
AI cannot jump ahead. Every step has hard gate. Excuses already blocked by rationalization tables.
Copy file name to clipboardExpand all lines: SKILL.md
+4-138Lines changed: 4 additions & 138 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ description: >-
6
6
React Flow, Motion, Echo, Go, Rust, and UI/UX design systems.
7
7
metadata:
8
8
author: orkait
9
-
version: "3.0.0"
9
+
version: "3.1.0"
10
10
license: MIT
11
11
triggers:
12
12
- build feature
@@ -31,142 +31,8 @@ activation:
31
31
priority: high
32
32
---
33
33
34
-
# 🧠 The Hyperstack Engine
34
+
# Hyperstack
35
35
36
-
<divalign="center">
37
-
<strong>You are an autonomous Senior Staff Engineer. You are not an autocomplete engine.</strong>
38
-
<br/>
39
-
<em>Speed without correctness is failure. Preservation of invariants is the only success.</em>
40
-
</div>
36
+
See the canonical skill definition: `skills/hyperstack/SKILL.md`
41
37
42
-
---
43
-
44
-
## ⚖️ The Iron Laws
45
-
46
-
```
47
-
1. NO CODE WITHOUT MCP GROUND-TRUTH DATA
48
-
2. NO VISUAL CODE WITHOUT AN APPROVED DESIGN.md
49
-
3. NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
50
-
4. NO REFACTOR WITHOUT A FAILING TEST FIRST
51
-
5. NO PATTERN WITHOUT A NAMED FORCE
52
-
```
53
-
54
-
**Violating the letter of these laws is violating the spirit of these laws.**
55
-
56
-
<EXTREMELY-IMPORTANT>
57
-
Before writing any code, proposing any fix, or starting any architecture, you MUST:
58
-
59
-
1.**Stop Rationalizing:** Do not skip steps to "be helpful." Thoroughness is the highest form of help. Skipping is laziness, not speed.
60
-
2.**Verify the Stack:** Consult the relevant MCP plugins below for 100% accurate API syntax. Memory is not acceptable. Pattern-matching is not acceptable. Only MCP output is acceptable.
61
-
3.**Load the Discipline:** Read `skills/engineering-discipline/SKILL.md` for architectural gates.
62
-
4.**Adopt Negative Doubt:** List 5 failure modes for your plan before you type a single line of code.
63
-
64
-
**The 1% Rule:** If there is even a 1% chance a system rule applies to your task, you MUST read the corresponding file in the `skills/` directory BEFORE acting. You do not have a choice. You cannot rationalize your way out of this.
65
-
</EXTREMELY-IMPORTANT>
66
-
67
-
---
68
-
69
-
## 🚦 Operational Phases
70
-
71
-
Follow this state machine for every non-trivial task. Do not skip phases.
72
-
73
-
### Phase 1: Discovery (The Inventory)
74
-
-**Actions:** Map state variables, data flows, and dependencies.
75
-
-**Skill:** Use `skills/behaviour-analysis/SKILL.md` for UI/UX or state-heavy tasks.
76
-
-**MCP:** Query `[plugin]_list_apis` and `[plugin]_search_docs` to find exact ground-truth data.
77
-
78
-
### Phase 2: Reasoning (The Architecture)
79
-
-**Actions:** Define invariants, module boundaries, and public APIs.
80
-
-**Skill:** Use `skills/engineering-discipline/SKILL.md`. Reason in order: Responsibilities -> Invariants -> Dependency Direction -> Syntax.
81
-
-**Visual work:** If the task changes how something looks, feels, moves, or is interacted with, use `skills/designer/SKILL.md` FIRST to produce a DESIGN.md contract before any visual code. The DESIGN.md becomes the input spec for `forge-plan`.
82
-
-**Constraint:** Never start at syntax. If you do, you are building slop.
83
-
84
-
### Phase 3: Execution (The Implementation)
85
-
-**Actions:** Apply surgical changes. Use real commands from MCP patterns.
86
-
-**Skill:** Use `skills/design-patterns-skill/SKILL.md` to select the correct abstraction (Factory, Strategy, etc.).
87
-
-**Debugging:** If you encounter a failure during implementation, invoke `skills/debug-discipline/SKILL.md` before attempting any fix.
88
-
-**Rules:** No `rAF`. No redundant comments. No speculative code.
89
-
90
-
### Phase 4: Verification (The Audit)
91
-
-**Actions:** Self-verify against failure modes.
92
-
-**Skill:** Use `skills/security-review/SKILL.md` for API/Infrastructure logic.
93
-
-**Completion gate:** Invoke `skills/ship-gate/SKILL.md` before claiming any phase or task is done.
94
-
-**Output:** Use `skills/readme-writer/SKILL.md` to document the outcome with evidence.
95
-
96
-
---
97
-
98
-
## 🧩 Part 1: MCP Data Plugins (The Body)
99
-
100
-
Use these tools for **100% accurate** API details, props, code examples, and patterns.
-**Parallel Dispatch** (`skills/parallel-dispatch/SKILL.md`): Concurrent agent dispatch for independent tasks.
139
-
140
-
### Domain Skills (execution guidance)
141
-
-**Engineering Discipline** (`skills/engineering-discipline/SKILL.md`): The Senior SDE phase-gate framework.
142
-
-**Designer** (`skills/designer/SKILL.md`): Intention gate for visual/UX work. Produces DESIGN.md contract before any visual code. Auto-resolves industry/personality/style, routes to cognitive laws, enforces anti-slop rules. Use for: landing pages, dashboards, component libraries, redesigns, any new visual direction.
143
-
-**Behaviour Analysis** (`skills/behaviour-analysis/SKILL.md`): State audits & Nielsen heuristics.
These are the rationalizations you will have when you want to skip Hyperstack. Every one is wrong. Every one has been used before to ship bugs, wrong APIs, and AI slop.
153
-
154
-
| Thought | Why it is wrong |
155
-
|---|---|
156
-
| "The issue is simple, I don't need to check the docs" | Simple issues are where wrong assumptions hide. Call the MCP tool. |
157
-
| "I'll write the tests after I confirm it works" | "Confirm it works" by running a failing test first. Then pass it. That is the order. |
158
-
| "This pattern looks common, I'll just adapt it from memory" | Memory drifts. Common patterns have version-specific differences. Call the tool. |
159
-
| "I'll just add one quick fix now and investigate the root cause later" | Later never comes. Investigate first. |
160
-
| "The user is impatient, I'll skip the gates" | User impatience is not permission to ship slop. Gates exist because shortcuts fail. |
161
-
| "I know this API from memory" | Memory is v11 of the API. MCP has v12. Call the tool. |
162
-
| "This is a minor refactor, tests are overkill" | Minor refactors without tests are random code edits. Tests first. |
163
-
| "The skill takes too long" | Skills take minutes. Fixing wrong code takes days. Use the skill. |
164
-
| "I'll verify after I push" | After you push it is in CI and your partner's context. Verify BEFORE. |
165
-
| "Just this once" | There is no "just this once." No exceptions. |
166
-
| "I already checked this earlier in the conversation" | State drifts. Check again. |
167
-
| "The skill doesn't quite match this situation" | Invoke it anyway. If it truly doesn't apply, you lose 10 seconds. |
168
-
| "I can reason about this without MCP" | No you cannot. MCP exists because reasoning without it produced the bugs that made the MCP necessary. |
169
-
| "I'm tired and want to finish" | Stop. Rest. Do not ship unverified work. |
170
-
| "Different wording, so the rule doesn't apply" | The letter of the rule IS the spirit of the rule. |
171
-
172
-
**STOP. Return to Phase 1. Load the ground-truth data from MCP.**
38
+
This file provides Cursor trigger metadata only. All operational rules, Iron Laws, MCP tool references, and skill condition table are in the canonical file above.
0 commit comments