@mingfuyun/star-allinone 0.1.9 → 0.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingfuyun/star-allinone",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "星系运维前端能力包",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/skills/README.md CHANGED
@@ -71,6 +71,7 @@ custom-* 业务定制 skill,由业务项目维护
71
71
  ├── impact-analysis/
72
72
  ├── ai-review/
73
73
  ├── commit-current-changes/
74
+ ├── i-have-adhd/ # 同步为 shared-i-have-adhd;其他 shared skill 的用户输出格式
74
75
  └── publish-test/ # 流水线 ID 从 .star-allinone.json 读取
75
76
  ```
76
77
 
@@ -27,3 +27,7 @@ Do not require a project-local review-rules file. If `.agents/project/review-rul
27
27
  Lead with findings ordered `[P0]`–`[P3]`, with file and line. Separate blocking issues from recommendations. Do not report style preferences as bugs.
28
28
 
29
29
  If none, write `No issues found.` Always include validation performed and gaps. Do not modify files unless the user explicitly asks for fixes.
30
+
31
+ ## User-facing output
32
+
33
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.
@@ -21,3 +21,7 @@ If the service contract is missing, first follow `.agents/skills/shared-api-to-s
21
21
  ## Handoff
22
22
 
23
23
  For every endpoint, report HTTP method, path, scenario label, and one strict parseable JSON block. If files were written, list the paths and confirm they parse as JSON.
24
+
25
+ ## User-facing output
26
+
27
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.
@@ -49,3 +49,7 @@ pnpm exec tsc --noEmit
49
49
  ```
50
50
 
51
51
  Parse changed JSON files. Search generated names, operationId, and exact API paths for omissions and collisions. Run `pnpm lint` for broad service changes. Cite the OpenAPI path, method, operationId, and schema names in the handoff.
52
+
53
+ ## User-facing output
54
+
55
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.
@@ -64,3 +64,7 @@ A confirmed commit or push does not authorize the test pipeline. If the user lat
64
64
  - Never expose credentials from diffs; stop if secrets are present.
65
65
  - Never use destructive Git commands to clean the working tree.
66
66
  - If push is rejected, report the reason and do not rewrite history without separate authorization.
67
+
68
+ ## User-facing output
69
+
70
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.
@@ -46,3 +46,7 @@ pnpm exec tsc --noEmit
46
46
  ```
47
47
 
48
48
  Run `pnpm lint` for broad or shared changes. Run the project's documented build command when routes, entry, or multiple pages change.
49
+
50
+ ## User-facing output
51
+
52
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: {{sharedSkillName}}
3
+ description: 'Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time estimates, make wins visible. Invoke with /i-have-adhd; stays on until "stop adhd mode".'
4
+ disable-model-invocation: true
5
+ license: MIT
6
+ metadata:
7
+ tags: "ADHD, Output Style, Productivity, Formatting"
8
+ category: "productivity"
9
+ ---
10
+
11
+ # i-have-adhd
12
+
13
+ The reader has ADHD. Output is not just brief. It is shaped so an ADHD brain can act on it.
14
+
15
+ ## Persistence
16
+
17
+ These rules apply to every response for the rest of the session, not only this one. They do not expire after a few turns and they do not lapse when the topic changes. If you are unsure whether they still apply, they do.
18
+
19
+ Turn them off only when the reader says "stop adhd mode" or "normal mode". Confirm in one line, then return to your default style.
20
+
21
+ ## What ADHD changes about reading
22
+
23
+ Five facts drive every rule below:
24
+
25
+ 1. Working memory is small. Anything not on screen is forgotten. Do not ask the reader to "keep in mind X."
26
+ 2. Knowing the answer is not doing the answer. The friction between "got it" and "done it" is where work dies.
27
+ 3. Starting is the hardest step. The first action must be obvious, small, and doable now.
28
+ 4. Time estimates feel uniform. "A bit of work" and "a few hours" register the same. Vague estimates fail.
29
+ 5. Dopamine is scarce. Visible progress matters. Buried wins do not register.
30
+
31
+ ## Rules
32
+
33
+ ### 1. Lead with the next action
34
+
35
+ The first line is something the reader can do. Not context. Not a plan. The action.
36
+
37
+ Bad: "Let's think about this. Your auth flow has a few moving pieces..."
38
+ Good: "Run `npm install jsonwebtoken`, then edit `src/auth.ts:42`."
39
+
40
+ If the answer is a command, path, or snippet, it goes first. Prose comes after, if at all.
41
+
42
+ ### 2. Number multi-step tasks
43
+
44
+ If the work takes more than one step, write a numbered list. Each step is one bounded action. No step contains "and then" twice.
45
+
46
+ Use the fewest steps that still work. Cut any step the reader does not need, and fold trivial steps into the one before. A short path finished beats a complete path abandoned.
47
+
48
+ Bad: "First open the file, find the function, swap it out, then run the tests."
49
+
50
+ Good:
51
+ ```
52
+ 1. Open `src/auth.ts`
53
+ 2. Replace `verifyToken` (lines 42 to 58) with the snippet below
54
+ 3. Run `npm test -- auth.spec.ts`
55
+ ```
56
+
57
+ ### 3. End with one concrete next action
58
+
59
+ If anything is left open, name ONE thing the reader can do in under two minutes. Even "open the file" counts.
60
+
61
+ Bad: "Hope that helps. Let me know if you want to dig deeper."
62
+ Good: "Next: run `npm test` and paste the first failing line."
63
+
64
+ ### 4. Suppress tangents
65
+
66
+ If a second issue exists, finish the first, then offer the second as a separate question.
67
+
68
+ Bad: "Here's the fix. By the way, your dependency is also stale, and your README is out of date, and..."
69
+ Good: "Here's the fix. Separately: there is also a stale dependency. Want me to handle that next?"
70
+
71
+ A question that comes up mid-work is not a tangent: answer it yourself if you can and fold the result in. If it still needs the reader, surface it once, at the end.
72
+
73
+ ### 5. Restate state every turn
74
+
75
+ The reader cannot hold "we are on step 3 of 5" between messages. Restate it.
76
+
77
+ Bad: "Done. Ready for the next part?"
78
+ Good: "Step 3 of 5 done: schema updated. Next: backfill the new column. Run the script?"
79
+
80
+ If the harness has a task or plan tool, use it for multi-step work: one item per step, one in progress at a time. The checklist does the restating; do not also narrate the full plan as prose.
81
+
82
+ ### 6. Give specific time estimates
83
+
84
+ Vague estimates fail. Ballpark in concrete units.
85
+
86
+ Bad: "This will take some work."
87
+ Good: "About 15 minutes if tests already cover this. An afternoon if not."
88
+
89
+ ### 7. Make completed work visible
90
+
91
+ Show what now works, in concrete terms. Do not bury wins in a recap.
92
+
93
+ Bad: "I've made some changes to the auth flow. Among other things..."
94
+ Good: "Login now works with magic links. Try: `npm run dev`, open `/login`."
95
+
96
+ ### 8. Matter-of-fact tone for errors
97
+
98
+ Never use "Uh oh," "Oh no," or "There seems to be a problem." State cause and fix.
99
+
100
+ Bad: "Uh oh, the test is failing. There seems to be an issue..."
101
+ Good: "Test fails at `auth.spec.ts:42`: expected 200, got 401. Cause: missing auth header. Fix: add `Authorization: Bearer ${token}` to the request."
102
+
103
+ ### 9. Cap lists to 5 items
104
+
105
+ For long lists in the final response, group related items and rank the most relevant first. Keep the visible working set small: aim for no more than five items per group. When more items are relevant, retain them internally without discarding them. Display them only when the user asks or when they become the next items to address.
106
+
107
+ Never omit relevant items when completeness matters. This rule shapes presentation only; it must not limit analysis, search, tool results, candidate generation, or retained information.
108
+
109
+ ### 10. No preamble, no recap, no closing pleasantries
110
+
111
+ Forbidden openers: "Great question," "Let me...", "I'll...", "Sure!", "Looking at your...", "To answer your question..."
112
+
113
+ Forbidden recaps after a completed task: "I've now done X, Y, and Z, which means..."
114
+
115
+ Forbidden closers: "Let me know if you need anything else," "Hope this helps," "Happy to clarify," "Feel free to ask."
116
+
117
+ Start with the answer. End when the answer is done.
118
+
119
+ ## When to break the rules
120
+
121
+ Override the defaults when:
122
+
123
+ 1. User asks to "explain" or "walk me through." Explain fully. Still no preamble, still no closer, but the body runs as long as the topic needs. Add headers so the reader can skim back.
124
+ 2. Destructive action ahead (`rm -rf`, force push, schema migration, dropping a table). Confirm before acting. Safety wins over brevity.
125
+ 3. Debug spiral. If the last three turns have been "still broken," stop iterating on code. Name the assumption that might be wrong. Ask one diagnostic question.
126
+ 4. Real ambiguity in the request. One short clarifying question beats guessing and rewriting.
127
+ 5. A rule fights the task. When a rule would delete the answer itself, the task wins; the shape stays. Example: "what are my options" gets 2 to 4 ranked options with one-line trade-offs, recommendation first, not one path. The options are the answer.
128
+ 6. A rule fights the harness. Inside an agent harness, the system prompt outranks this skill: announce a tool call when the harness requires it, do the work instead of asking "want me to," point time estimates at whoever executes the steps. Same principle as 5: the constraint wins, the shape stays.
129
+
130
+ ## Pre-send check
131
+
132
+ Before sending, delete:
133
+
134
+ 1. The first sentence if it announces what you are about to do.
135
+ 2. The last sentence if it asks "anything else?" or recaps what just happened.
136
+ 3. Any "by the way" sidebar.
137
+ 4. Any hedging adverb adding no information ("perhaps," "might," "could possibly"). Keep a hedge that carries real uncertainty; deleting it manufactures confidence.
138
+ 5. Any idiom or figurative phrase ("circle back," "get the ball rolling," "on the same page"). Replace with the literal action.
139
+
140
+ Then verify: if the reader reads only the first line and the last line, do they know (a) what to do next, and (b) what just happened?
141
+
142
+ If yes, send.
@@ -28,3 +28,7 @@ Read `.agents/skills/shared-project-conventions/references/review-checklist.md`
28
28
  - Risks that cannot be confirmed statically, with why
29
29
 
30
30
  Use repository facts only. Do not invent backend behavior.
31
+
32
+ ## User-facing output
33
+
34
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.
@@ -28,3 +28,7 @@ Shared rules are complete for review, commit, mock, and service generation. If `
28
28
  ## Completion
29
29
 
30
30
  Report changed files, API operations used, states covered, validation commands and results, and remaining gaps.
31
+
32
+ ## User-facing output
33
+
34
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.
@@ -55,3 +55,7 @@ If Yunxiao selected a different branch or commit, the script stops the run. That
55
55
  A missing current-commit field is not a failure. `commit_verification=unavailable` is acceptable when Yunxiao has not yet returned a commit.
56
56
 
57
57
  The dashboard comment is `BUILD_REMARK` and contains branch, commit subject, and `来源: Codex`. A missing top-level `comment` field is not a publication failure.
58
+
59
+ ## User-facing output
60
+
61
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.
@@ -76,3 +76,7 @@ If the user says `提交代码` before a review proposal exists, run the three s
76
76
  | `$shared-commit-current-changes` | Review plus confirmation-gated commit |
77
77
  | `$shared-ai-review` | Standalone review without commit |
78
78
  | `$shared-publish-test` | Publish to the test pipeline only after a separate `确认推送流水线`. Never run it automatically after git push. |
79
+
80
+ ## User-facing output
81
+
82
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.
@@ -42,3 +42,7 @@ Run the project's build script when routes, entry, or shared runtime change.
42
42
  4. Regression list: affected pages, suggested manual paths, uncovered risks.
43
43
 
44
44
  If there are no blockers, write `未发现阻断问题`. Do not report only that commands passed.
45
+
46
+ ## User-facing output
47
+
48
+ Read and apply `.agents/skills/shared-i-have-adhd/SKILL.md` to every response this skill sends to the user.