@zhiman_innies/innies-codex 0.122.36 → 0.122.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,16 +7,28 @@ description: "Use this before explicit creative design or implementation work -
|
|
|
7
7
|
|
|
8
8
|
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
|
|
9
9
|
|
|
10
|
-
Start by understanding the current project context, then ask
|
|
10
|
+
Start by understanding the current project context, then either proceed with stated assumptions or ask one blocking question if missing information would materially change the design. Once you understand what you're building, present the design and get user approval.
|
|
11
11
|
|
|
12
12
|
<HARD-GATE>
|
|
13
13
|
Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
|
|
14
|
+
|
|
15
|
+
This is an implementation gate, not a permission to stall. If enough context exists, present a concrete design immediately and ask for approval once.
|
|
14
16
|
</HARD-GATE>
|
|
15
17
|
|
|
16
18
|
## Anti-Pattern: "This Is Too Simple To Need A Design"
|
|
17
19
|
|
|
18
20
|
Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
|
|
19
21
|
|
|
22
|
+
## Execution Bias: Avoid Clarification Loops
|
|
23
|
+
|
|
24
|
+
Do not turn brainstorming into a clarification loop.
|
|
25
|
+
|
|
26
|
+
If the user explicitly delegates the design, proceed with stated assumptions. Examples include "需要", "继续", "你帮我重新设计吧", "直接帮我设计", "你帮我全自动实施", "go ahead", and "make reasonable assumptions".
|
|
27
|
+
|
|
28
|
+
Treat short confirmations such as "需要" as permission to continue from prior context, not as a reason to restart the workflow. When the conversation already contains enough purpose, domain, actors, constraints, or success criteria to make a defensible design, state assumptions briefly and present the concrete design in the same response.
|
|
29
|
+
|
|
30
|
+
Ask at most one blocking question when missing information would materially change the architecture, make implementation unsafe, or waste significant work. Do not ask serial background questions merely because more detail would be nice to have.
|
|
31
|
+
|
|
20
32
|
## Applicability Boundary
|
|
21
33
|
|
|
22
34
|
Use brainstorming when the user explicitly asks to design, build, create, implement, modify, or optimize something. Examples include "我要设计 / 我准备做 / 应该怎么设计 / 应该如何设计", "I want to design / let's build", "How should I design X", "help me build a workflow platform", or "optimize this architecture".
|
|
@@ -29,16 +41,16 @@ Positive Chinese design examples include "我准备做一个 RAG 检索系统,
|
|
|
29
41
|
|
|
30
42
|
## Checklist
|
|
31
43
|
|
|
32
|
-
|
|
44
|
+
Create tasks for the relevant items and complete them in order. Skip non-applicable items; do not manufacture questions or documents just to satisfy the checklist.
|
|
33
45
|
|
|
34
|
-
1. **Explore project context** — check files, docs, recent commits
|
|
46
|
+
1. **Explore project context** — check files, docs, recent commits when working in an existing project
|
|
35
47
|
2. **Offer visual companion** (if topic will involve visual questions) — this is its own message, not combined with a clarifying question. See the Visual Companion section below.
|
|
36
|
-
3. **
|
|
37
|
-
4. **Propose
|
|
38
|
-
5. **Present design** —
|
|
39
|
-
6. **Write design doc** —
|
|
40
|
-
7. **Spec self-review** —
|
|
41
|
-
8. **User reviews written spec** —
|
|
48
|
+
3. **Assess context sufficiency** — proceed with stated assumptions, or ask at most one blocking question
|
|
49
|
+
4. **Propose approaches** — lead with your recommendation; include alternatives only when they clarify a real trade-off
|
|
50
|
+
5. **Present design** — scaled to complexity, then get user approval once
|
|
51
|
+
6. **Write design doc** — only when the user requests a durable spec or the repo workflow requires it
|
|
52
|
+
7. **Spec self-review** — if a spec was written, check for placeholders, contradictions, ambiguity, scope (see below)
|
|
53
|
+
8. **User reviews written spec** — only if a spec was written
|
|
42
54
|
9. **Transition to implementation** — invoke writing-plans skill to create implementation plan
|
|
43
55
|
|
|
44
56
|
## Process Flow
|
|
@@ -48,10 +60,13 @@ digraph brainstorming {
|
|
|
48
60
|
"Explore project context" [shape=box];
|
|
49
61
|
"Visual questions ahead?" [shape=diamond];
|
|
50
62
|
"Offer Visual Companion\n(own message, no other content)" [shape=box];
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
63
|
+
"Enough context?" [shape=diamond];
|
|
64
|
+
"Ask one blocking question" [shape=box];
|
|
65
|
+
"State assumptions" [shape=box];
|
|
66
|
+
"Propose recommended approach" [shape=box];
|
|
67
|
+
"Present design" [shape=box];
|
|
54
68
|
"User approves design?" [shape=diamond];
|
|
69
|
+
"Spec required?" [shape=diamond];
|
|
55
70
|
"Write design doc" [shape=box];
|
|
56
71
|
"Spec self-review\n(fix inline)" [shape=box];
|
|
57
72
|
"User reviews spec?" [shape=diamond];
|
|
@@ -59,13 +74,18 @@ digraph brainstorming {
|
|
|
59
74
|
|
|
60
75
|
"Explore project context" -> "Visual questions ahead?";
|
|
61
76
|
"Visual questions ahead?" -> "Offer Visual Companion\n(own message, no other content)" [label="yes"];
|
|
62
|
-
"Visual questions ahead?" -> "
|
|
63
|
-
"Offer Visual Companion\n(own message, no other content)" -> "
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
77
|
+
"Visual questions ahead?" -> "Enough context?" [label="no"];
|
|
78
|
+
"Offer Visual Companion\n(own message, no other content)" -> "Enough context?";
|
|
79
|
+
"Enough context?" -> "State assumptions" [label="yes"];
|
|
80
|
+
"Enough context?" -> "Ask one blocking question" [label="no"];
|
|
81
|
+
"Ask one blocking question" -> "State assumptions";
|
|
82
|
+
"State assumptions" -> "Propose recommended approach";
|
|
83
|
+
"Propose recommended approach" -> "Present design";
|
|
84
|
+
"Present design" -> "User approves design?";
|
|
85
|
+
"User approves design?" -> "Present design" [label="no, revise"];
|
|
86
|
+
"User approves design?" -> "Spec required?" [label="yes"];
|
|
87
|
+
"Spec required?" -> "Write design doc" [label="yes"];
|
|
88
|
+
"Spec required?" -> "Invoke writing-plans skill" [label="no"];
|
|
69
89
|
"Write design doc" -> "Spec self-review\n(fix inline)";
|
|
70
90
|
"Spec self-review\n(fix inline)" -> "User reviews spec?";
|
|
71
91
|
"User reviews spec?" -> "Write design doc" [label="changes requested"];
|
|
@@ -82,14 +102,14 @@ digraph brainstorming {
|
|
|
82
102
|
- Check out the current project state first (files, docs, recent commits)
|
|
83
103
|
- Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., "build a platform with chat, file storage, billing, and analytics"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
|
|
84
104
|
- If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.
|
|
85
|
-
- For appropriately-scoped projects,
|
|
105
|
+
- For appropriately-scoped projects, proceed once enough context is available
|
|
86
106
|
- Prefer multiple choice questions when possible, but open-ended is fine too
|
|
87
|
-
-
|
|
107
|
+
- Ask at most one blocking question per turn; if the user has delegated the design, prefer stated assumptions over another question
|
|
88
108
|
- Focus on understanding: purpose, constraints, success criteria
|
|
89
109
|
|
|
90
110
|
**Exploring approaches:**
|
|
91
111
|
|
|
92
|
-
- Propose 2-3 different approaches with trade-offs
|
|
112
|
+
- Propose 2-3 different approaches with trade-offs when the choice is meaningful
|
|
93
113
|
- Present options conversationally with your recommendation and reasoning
|
|
94
114
|
- Lead with your recommended option and explain why
|
|
95
115
|
|
|
@@ -97,7 +117,7 @@ digraph brainstorming {
|
|
|
97
117
|
|
|
98
118
|
- Once you believe you understand what you're building, present the design
|
|
99
119
|
- Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
|
|
100
|
-
- Ask after
|
|
120
|
+
- Ask for approval once after the design, not after every small section
|
|
101
121
|
- Cover: architecture, components, data flow, error handling, testing
|
|
102
122
|
- Be ready to go back and clarify if something doesn't make sense
|
|
103
123
|
|
|
@@ -118,13 +138,13 @@ digraph brainstorming {
|
|
|
118
138
|
|
|
119
139
|
**Documentation:**
|
|
120
140
|
|
|
121
|
-
- Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
|
|
141
|
+
- Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` only when the user requests a durable spec or the repo workflow requires it
|
|
122
142
|
- (User preferences for spec location override this default)
|
|
123
143
|
- Use elements-of-style:writing-clearly-and-concisely skill if available
|
|
124
144
|
- Commit the design document to git
|
|
125
145
|
|
|
126
146
|
**Spec Self-Review:**
|
|
127
|
-
|
|
147
|
+
If writing the spec document, look at it with fresh eyes:
|
|
128
148
|
|
|
129
149
|
1. **Placeholder scan:** Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
|
|
130
150
|
2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?
|
|
@@ -134,7 +154,7 @@ After writing the spec document, look at it with fresh eyes:
|
|
|
134
154
|
Fix any issues inline. No need to re-review — just fix and move on.
|
|
135
155
|
|
|
136
156
|
**User Review Gate:**
|
|
137
|
-
|
|
157
|
+
If a written spec is required, after the spec review loop passes, ask the user to review the written spec before proceeding:
|
|
138
158
|
|
|
139
159
|
> "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
|
|
140
160
|
|
|
@@ -147,7 +167,8 @@ Wait for the user's response. If they request changes, make them and re-run the
|
|
|
147
167
|
|
|
148
168
|
## Key Principles
|
|
149
169
|
|
|
150
|
-
- **
|
|
170
|
+
- **Execution bias** - If enough context exists, present a concrete design instead of asking another question
|
|
171
|
+
- **One blocking question at a time** - Don't overwhelm with multiple questions
|
|
151
172
|
- **Multiple choice preferred** - Easier to answer than open-ended when possible
|
|
152
173
|
- **YAGNI ruthlessly** - Remove unnecessary features from all designs
|
|
153
174
|
- **Explore alternatives** - Always propose 2-3 approaches before settling
|
|
@@ -100,6 +100,8 @@ Only load brainstorming for explicit design/build/modify requests. Examples incl
|
|
|
100
100
|
|
|
101
101
|
Concept explanation prompts are not brainstorming by default. If the user asks "what is / how does X work / 机制 / 原理 / 是什么 / 有什么区别", answer directly unless they also explicitly ask to design, build, implement, adapt, or modify something.
|
|
102
102
|
|
|
103
|
+
When brainstorming is active, proceed once enough context is available. Do not let brainstorming become a serial interrogation loop. If the user has delegated the work or confirmed continuation, use stated assumptions and present a concrete design instead of asking non-blocking background questions.
|
|
104
|
+
|
|
103
105
|
## Skill Priority
|
|
104
106
|
|
|
105
107
|
When multiple skills could apply, use this order:
|
package/bin/innies-config.js
CHANGED
|
@@ -16,6 +16,7 @@ const DEFAULT_CATALOG_FILENAME = "catalog.json";
|
|
|
16
16
|
const DEFAULT_CONFIG_FILENAME = "config.toml";
|
|
17
17
|
const DEFAULT_STATE_FILENAME = "innies-state.json";
|
|
18
18
|
const DEFAULT_SUPERPOWERS_DIRNAME = "superpowers";
|
|
19
|
+
const INSTALL_SUPERPOWERS_ENV = "INNIES_INSTALL_SUPERPOWERS";
|
|
19
20
|
const SUPERPOWERS_MARKER_FILENAME = ".innies-superpowers.marker";
|
|
20
21
|
const ZHIMAN_35B_PROVIDER_HEADER = "[model_providers.zhiman_35b]";
|
|
21
22
|
const ZHIMAN_35B_RESPONSES_BASE_URL = "http://101.237.37.116:7380/v1";
|
|
@@ -52,7 +53,11 @@ export function ensureInniesHomeDefaults(homeDir) {
|
|
|
52
53
|
const state = loadInniesState(homeDir);
|
|
53
54
|
const catalogPath = path.join(homeDir, DEFAULT_CATALOG_FILENAME);
|
|
54
55
|
ensureInniesCatalog(catalogPath);
|
|
55
|
-
|
|
56
|
+
if (shouldInstallInniesSuperpowers()) {
|
|
57
|
+
ensureInniesSuperpowers(homeDir);
|
|
58
|
+
} else {
|
|
59
|
+
removeManagedInniesSuperpowers(homeDir);
|
|
60
|
+
}
|
|
56
61
|
const nextState = ensureInniesConfig(
|
|
57
62
|
path.join(homeDir, DEFAULT_CONFIG_FILENAME),
|
|
58
63
|
catalogPath,
|
|
@@ -69,6 +74,11 @@ function defaultSuperpowersAssetPath() {
|
|
|
69
74
|
return path.join(__dirname, "..", "assets", DEFAULT_SUPERPOWERS_DIRNAME);
|
|
70
75
|
}
|
|
71
76
|
|
|
77
|
+
function shouldInstallInniesSuperpowers() {
|
|
78
|
+
const value = process.env[INSTALL_SUPERPOWERS_ENV]?.trim().toLowerCase();
|
|
79
|
+
return value === "1" || value === "true" || value === "yes";
|
|
80
|
+
}
|
|
81
|
+
|
|
72
82
|
function loadDefaultCatalog() {
|
|
73
83
|
return JSON.parse(fs.readFileSync(defaultCatalogAssetPath(), "utf8"));
|
|
74
84
|
}
|
|
@@ -100,6 +110,16 @@ function ensureInniesSuperpowers(homeDir) {
|
|
|
100
110
|
fs.writeFileSync(markerPath, `${fingerprint}\n`);
|
|
101
111
|
}
|
|
102
112
|
|
|
113
|
+
function removeManagedInniesSuperpowers(homeDir) {
|
|
114
|
+
const destDir = path.join(homeDir, DEFAULT_SUPERPOWERS_DIRNAME);
|
|
115
|
+
const markerPath = path.join(destDir, SUPERPOWERS_MARKER_FILENAME);
|
|
116
|
+
if (!fs.existsSync(markerPath)) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
fs.rmSync(destDir, { recursive: true, force: true });
|
|
121
|
+
}
|
|
122
|
+
|
|
103
123
|
function readTextFile(filePath) {
|
|
104
124
|
try {
|
|
105
125
|
return fs.readFileSync(filePath, "utf8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhiman_innies/innies-codex",
|
|
3
|
-
"version": "0.122.
|
|
3
|
+
"version": "0.122.37",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"innies": "bin/innies.js"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"postinstall": "node bin/innies-init.js"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@zhiman_innies/innies-codex-darwin-x64": "0.122.
|
|
27
|
-
"@zhiman_innies/innies-codex-darwin-arm64": "0.122.
|
|
26
|
+
"@zhiman_innies/innies-codex-darwin-x64": "0.122.37-darwin-x64",
|
|
27
|
+
"@zhiman_innies/innies-codex-darwin-arm64": "0.122.37-darwin-arm64"
|
|
28
28
|
}
|
|
29
29
|
}
|