musubix7 0.1.0 → 0.1.2
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/.github/skills/existing-code-requirements/LICENSE +21 -0
- package/.github/skills/existing-code-requirements/SKILL.md +74 -0
- package/.github/skills/sdd-tdd/LICENSE +21 -0
- package/.github/skills/sdd-tdd/SKILL.md +20 -8
- package/.github/skills/sdd-tdd/references/contracts.md +33 -0
- package/.github/skills/sdd-tdd/references/helpers.md +63 -0
- package/.github/skills/sdd-tdd/references/interview.md +1 -1
- package/.github/skills/sdd-tdd/references/orca-handoff.md +108 -0
- package/.github/skills/sdd-tdd/references/verification.md +4 -0
- package/.github/skills/sdd-tdd/references/workflow.md +24 -0
- package/.github/skills/sdd-tdd/scripts/context.mjs +79 -0
- package/.github/skills/sdd-tdd/scripts/contract.mjs +102 -0
- package/.github/skills/sdd-tdd/scripts/evidence.mjs +4 -4
- package/.github/skills/sdd-tdd/scripts/install.mjs +201 -0
- package/.github/skills/sdd-tdd/scripts/tdd.mjs +52 -0
- package/LICENSE +21 -0
- package/README-ja.md +191 -0
- package/README.md +180 -65
- package/bin/musubix.mjs +19 -0
- package/package.json +19 -8
package/README.md
CHANGED
|
@@ -1,97 +1,212 @@
|
|
|
1
1
|
# musubix7
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Agent Skills for AI coding with Spec-Driven Development (SDD) and Test-Driven Development (TDD).**
|
|
4
|
+
Works with GitHub Copilot CLI and Claude Code. Choose either host.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
English | [日本語](README-ja.md)
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
musubix7 is a **process harness** connecting requirements, specifications, planning,
|
|
9
|
+
tests, and completion checks. It is not a model or an agent runtime. Your host CLI
|
|
10
|
+
performs the coding, test execution, planning, and approval operations.
|
|
11
|
+
**You only need one of the two hosts.**
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
## Choose a Skill
|
|
10
14
|
|
|
11
|
-
|
|
|
15
|
+
| Skill | When to use it |
|
|
12
16
|
|---|---|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
17
|
+
| [`sdd-tdd`](.github/skills/sdd-tdd/SKILL.md) | Development from scratch, or change-unit SDD/TDD for a project previously completed with musubix7, with specifications, tests, and Done records. Explicit targets are TypeScript/Node.js, Python, and Rust. |
|
|
18
|
+
| [`existing-code-requirements`](.github/skills/existing-code-requirements/SKILL.md) | Bounded reading of existing code to produce an evidence-backed requirements draft. Read-only investigation and documentation are the default: do not modify target source/test/config. |
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
ECR is not an automatic preprocessing step for new development. A draft alone
|
|
21
|
+
does not satisfy the completed-project gate for `sdd-tdd`. Parts of the process
|
|
22
|
+
are language-independent, but this does not promise support or verification for
|
|
23
|
+
other languages. Skills and helpers are not a security boundary guaranteeing
|
|
24
|
+
agent judgment or execution. Label ordinary AI decisions as "AI approval", not
|
|
25
|
+
human approval; unresolved intent or required high-risk consent remains a blocker.
|
|
17
26
|
|
|
18
|
-
|
|
19
|
-
mkdir -p .claude/skills
|
|
20
|
-
ln -s ../../.github/skills/sdd-tdd .claude/skills/sdd-tdd
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Windows PowerShell や symlink が使えない環境では、同一内容をコピーする。コピーは独立して更新されないため、元本体の更新ごとにバックアップ・差分確認後に同期する。既存のコピーがあればこのコマンドをそのまま重ねない。
|
|
24
|
-
|
|
25
|
-
```powershell
|
|
26
|
-
New-Item -ItemType Directory -Force .claude/skills | Out-Null
|
|
27
|
-
Copy-Item -Recurse .github/skills/sdd-tdd .claude/skills/sdd-tdd
|
|
28
|
-
```
|
|
27
|
+
## Install
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
### Prerequisites
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
| Purpose | Requirements |
|
|
32
|
+
|---|---|
|
|
33
|
+
| Host | [Install and authenticate GitHub Copilot CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/cli-getting-started), or [install Claude Code](https://code.claude.com/docs/en/setup) and [authenticate](https://code.claude.com/docs/en/authentication). Arrange access and authentication separately with your host. |
|
|
34
|
+
| Installation CLI below | Node.js **22+**; npm for the npm route, Git for the Git route. Reading Skill instructions alone needs no Node/npm; bundled helpers require Node.js 22+. |
|
|
35
|
+
| Your project | Its native language toolchain and test runner. Reproducing the bundled TypeScript example separately requires Node.js **24+** and `npm ci`. |
|
|
36
|
+
| Write access | `.github/skills/`, `.claude/skills/`, and `.sdd/` in the target project root. No shared CLI configuration or authentication changes are needed. |
|
|
38
37
|
|
|
39
|
-
###
|
|
38
|
+
### Install from Git source
|
|
40
39
|
|
|
41
|
-
|
|
40
|
+
Run **from your target project root**, using an unused neighboring directory for
|
|
41
|
+
the checkout. The `main` source contains the existing `bin/musubix.mjs`
|
|
42
|
+
entrypoint; it does not execute a registry package.
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
```sh
|
|
45
|
+
git clone --branch main --single-branch https://github.com/nahisaho/musubix7.git ../musubix7-skills &&
|
|
46
|
+
git -C ../musubix7-skills rev-parse HEAD &&
|
|
47
|
+
node ../musubix7-skills/bin/musubix.mjs init
|
|
48
|
+
```
|
|
44
49
|
|
|
45
|
-
|
|
50
|
+
If you change the checkout location, update all three paths. Keep the printed
|
|
51
|
+
source commit for reference, and run the final command from the target root too.
|
|
52
|
+
**These rewritten READMEs are included in the 0.1.2 candidate, not the older tags' artifacts.**
|
|
46
53
|
|
|
47
|
-
|
|
54
|
+
### Install with npm (recommended)
|
|
48
55
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
Public metadata checked on 2026-11-27 lists **0.1.1** as `latest`.
|
|
57
|
+
Published 0.1.0 and 0.1.1 contain the older eight-file distribution without the
|
|
58
|
+
CLI, ECR, or MIT license files; do not use either for this installation.
|
|
59
|
+
The corrected **0.1.2** candidate includes both Skills, the CLI, MIT notices,
|
|
60
|
+
and both READMEs, and is being prepared for manual publication by the owner.
|
|
61
|
+
It is not yet a verified public release. Check
|
|
62
|
+
[npm 0.1.2](https://www.npmjs.com/package/musubix7/v/0.1.2) and the
|
|
63
|
+
[GitHub Release](https://github.com/nahisaho/musubix7/releases/tag/v0.1.2) separately.
|
|
54
64
|
|
|
55
|
-
|
|
65
|
+
**Do not run this with today's latest. Only after confirming that latest is the
|
|
66
|
+
corrected, CLI-ready release**, run from the target project root:
|
|
56
67
|
|
|
57
|
-
|
|
68
|
+
```sh
|
|
69
|
+
npm install musubix7@latest && npx musubix init
|
|
70
|
+
```
|
|
58
71
|
|
|
59
|
-
|
|
72
|
+
The package is `musubix7`; its executable is `musubix`. `@latest` selects npm's
|
|
73
|
+
latest release without a numeric version. `&&` prevents running `npx` if
|
|
74
|
+
installation fails. The installed package must provide the local `musubix`
|
|
75
|
+
executable; do not run `npx` with a missing executable or fetch an unrelated
|
|
76
|
+
namesake package as a substitute.
|
|
77
|
+
|
|
78
|
+
### Destinations and safe reruns
|
|
79
|
+
|
|
80
|
+
`musubix init` copies both Skills into the **calling working directory**. There
|
|
81
|
+
is no host-selection option.
|
|
82
|
+
|
|
83
|
+
| Skill | Copilot CLI | Claude Code |
|
|
84
|
+
|---|---|---|
|
|
85
|
+
| `sdd-tdd` | `.github/skills/sdd-tdd/` | `.claude/skills/sdd-tdd/` |
|
|
86
|
+
| `existing-code-requirements` | `.github/skills/existing-code-requirements/` | `.claude/skills/existing-code-requirements/` |
|
|
87
|
+
|
|
88
|
+
Installation baselines are `.sdd/skill-install.json` and
|
|
89
|
+
`.sdd/skill-install-existing-code-requirements.json`. Rerunning with identical
|
|
90
|
+
source, identity, destinations, and baselines writes nothing. Existing manual
|
|
91
|
+
copies stop as an unknown baseline even if identical; local edits, extra/missing
|
|
92
|
+
files, mode changes, and unsafe links are also rejected with a nonzero result.
|
|
93
|
+
Preserve the original files and metadata and review the differences. There is
|
|
94
|
+
no force option or automatic overwrite. Do not run alongside another writer.
|
|
95
|
+
All destinations are preflighted, but the operation is not fully atomic:
|
|
96
|
+
mid-write I/O failures report `incomplete: true` without automatically rolling
|
|
97
|
+
back files already written.
|
|
98
|
+
|
|
99
|
+
`init` does not run git operations, install dependencies, execute Skills, or
|
|
100
|
+
change shared settings or authentication. For manual single-host installation,
|
|
101
|
+
copy each **entire** verified Skill directory to the appropriate location above;
|
|
102
|
+
stop and review differences if any file, directory, or link (including a broken
|
|
103
|
+
link) already exists. See the [installation helper guide](.github/skills/sdd-tdd/references/helpers.md#安全な導入更新)
|
|
104
|
+
for the relative Claude link mode and update preview, review, and apply steps.
|
|
105
|
+
That positional installer CLI is **sdd-tdd-only**: do not pass it an ECR source.
|
|
106
|
+
Copies do not synchronize automatically; review source versions and edits in
|
|
107
|
+
both destinations before updating.
|
|
108
|
+
|
|
109
|
+
Start `copilot` or `claude` in the target root. In Copilot,
|
|
110
|
+
`copilot skill list` can check discovery. In conversation, use `/sdd-tdd`,
|
|
111
|
+
`/existing-code-requirements`, or natural language explicitly naming the Skill,
|
|
112
|
+
and confirm that its `SKILL.md` was read. Placement or discovery alone is not a
|
|
113
|
+
successful execution of the process.
|
|
114
|
+
|
|
115
|
+
## Start from scratch
|
|
116
|
+
|
|
117
|
+
Explicitly request `sdd-tdd` and start with one small feature.
|
|
118
|
+
|
|
119
|
+
1. Clarify the goal, success conditions, and exclusions; resolve only unknowns that affect decisions.
|
|
120
|
+
2. Write the single specification in `.sdd/specs/<feature>.md`, with acceptance criteria, examples/counterexamples, stable REQ IDs, and test mappings.
|
|
121
|
+
3. Use the host's planning facilities for dependencies and completion criteria, then run a meaningful failing assertion: **Red**, using the project's native runner.
|
|
122
|
+
4. Make **the same test Green** with minimal implementation; refactor and run affected regressions as needed.
|
|
123
|
+
5. Reconcile specification, implementation, and tests; collect required checks, evidence, and review before recording Done. Failures, skips, and unperformed checks are not success.
|
|
124
|
+
|
|
125
|
+
Example request (copy and adapt):
|
|
60
126
|
|
|
61
127
|
```text
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
cd ../python
|
|
69
|
-
python3 -m unittest -v test_discount
|
|
70
|
-
cd ../rust
|
|
71
|
-
cargo test --offline
|
|
72
|
-
cargo check --offline
|
|
128
|
+
Use sdd-tdd to build a TypeScript discount calculator from scratch in this root.
|
|
129
|
+
Amounts are nonnegative integers; discount percentages are integers from 0 to 100.
|
|
130
|
+
Round the discounted amount down. Reject out-of-range inputs; exclude UI, databases,
|
|
131
|
+
and publishing. Clarify only missing intent, then define the specification and acceptance criteria first.
|
|
132
|
+
Use the host's plan, run an actual assertion Red and the same test Green, then the
|
|
133
|
+
necessary regressions, evidence, and Done. Distinguish executed, reused, and unperformed checks.
|
|
73
134
|
```
|
|
74
135
|
|
|
75
|
-
|
|
136
|
+
Environment, import, or compiler failures and skipped tests are not TDD Red.
|
|
137
|
+
See the [workflow](.github/skills/sdd-tdd/references/workflow.md) and
|
|
138
|
+
[verification guide](.github/skills/sdd-tdd/references/verification.md).
|
|
76
139
|
|
|
77
|
-
##
|
|
140
|
+
## Start from existing code, then add a feature
|
|
78
141
|
|
|
79
|
-
|
|
142
|
+
First request `existing-code-requirements` with a **reading scope and output**.
|
|
143
|
+
Separate observed facts, inferred intent, unknowns, and requested future state,
|
|
144
|
+
with evidence such as paths, symbols, and tests. Preserve existing canonical
|
|
145
|
+
documents, IDs, and user edits. Unexecuted tests are not proof of success or
|
|
146
|
+
correct business requirements.
|
|
80
147
|
|
|
81
|
-
|
|
148
|
+
```text
|
|
149
|
+
Use existing-code-requirements to draft requirements for this root's discount feature.
|
|
150
|
+
Start at src/discount.ts. Read only src/discount.ts, tests/discount.test.ts,
|
|
151
|
+
the existing .sdd/specs/discount.md, and directly referenced configuration, up to 800 lines total.
|
|
152
|
+
Write limited changes to .sdd/specs/discount.md, preserving existing documents, IDs, and edits.
|
|
153
|
+
Separate observed facts, inferred intent, unknowns, and requested future state, with evidence.
|
|
154
|
+
Identify contradictions and unexecuted tests. Do not change source/test/config.
|
|
155
|
+
If more reading is needed, stop and report before expanding the scope.
|
|
156
|
+
```
|
|
82
157
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
158
|
+
Replace those example paths with your project's paths. After drafting, resolve
|
|
159
|
+
intent and contradictions, supply missing requirements and actual tests, **run**
|
|
160
|
+
the necessary checks, and identify verification gaps. **Actually establish a
|
|
161
|
+
completed baseline with specifications, tests, and Done under musubix7 before**
|
|
162
|
+
moving to change-unit SDD/TDD. Fill baseline gaps first or explicitly leave the
|
|
163
|
+
work incomplete; a draft alone does not pass the completed-project gate.
|
|
164
|
+
Then, for example:
|
|
165
|
+
|
|
166
|
+
```text
|
|
167
|
+
Verify the completed baseline against its specification, actual tests, and Done,
|
|
168
|
+
then use sdd-tdd for change DISCOUNT-002: change the maximum discount percentage to 50.
|
|
169
|
+
Preserve the old Done and REQ IDs. Update affected canonical specifications,
|
|
170
|
+
acceptance criteria, and the host plan first, then run assertion Red for the new
|
|
171
|
+
expectation, the same test Green, necessary regressions and evidence, and this change's Done.
|
|
172
|
+
If the completed baseline cannot be confirmed, report what is missing instead of starting the feature.
|
|
91
173
|
```
|
|
92
174
|
|
|
93
|
-
|
|
175
|
+
**Refactoring requires a separate explicit instruction.** Define the allowed
|
|
176
|
+
scope and behavior to preserve, establish an actual Green baseline, make the
|
|
177
|
+
bounded change, then rerun the same tests and necessary regressions:
|
|
178
|
+
**Green to Green**. Do not modify the affected code if that baseline fails, is
|
|
179
|
+
missing, skipped, or cannot run. This is separate from feature TDD Red to Green;
|
|
180
|
+
do not manufacture Red or adjust expectations merely to make tests pass.
|
|
94
181
|
|
|
95
|
-
##
|
|
182
|
+
## Support and evidence levels
|
|
96
183
|
|
|
97
|
-
|
|
184
|
+
The request snippets above are **instructional examples**, not newly executed
|
|
185
|
+
demonstrations. Documented support, placement checks, manual application, and
|
|
186
|
+
native host sessions are different evidence levels.
|
|
187
|
+
|
|
188
|
+
| Level | Scope and limitations |
|
|
189
|
+
|---|---|
|
|
190
|
+
| Supported hosts | Copilot CLI and Claude Code use the same Skill instructions. Available operations and permissions depend on the host version and settings. |
|
|
191
|
+
| Observed installation | Earlier local-tarball installation was checked on Linux / Node.js 24, not every OS or the Node.js 22 minimum. |
|
|
192
|
+
| Historical SDD/TDD sessions | Linux Copilot and Claude Code records cover discovery/loading and actual assertion Red to the same test Green for new and continued development. This is not a fresh verification of every latest native trigger. |
|
|
193
|
+
| Observed ECR | Explicit reading and manual application through Copilot ACP covered documentation, explicitly requested refactoring, and stopping on a failed baseline. Latest native automatic triggers, Claude execution, and all-OS execution remain unverified. |
|
|
194
|
+
| Future verification | macOS/native Windows remain pending in [existing tracker #15](https://github.com/nahisaho/musubix7/issues/15). Dedicated WSL execution is also unverified; these are not added as mandatory gates for this change. |
|
|
195
|
+
|
|
196
|
+
Historical evidence and detailed limits:
|
|
197
|
+
[SDD/TDD host sessions](https://github.com/nahisaho/musubix7/blob/724998279e5221b2a9f7bccb63caec511809bfa5/artifacts/item9/host-check.md),
|
|
198
|
+
[ECR report](https://github.com/nahisaho/musubix7/blob/724998279e5221b2a9f7bccb63caec511809bfa5/artifacts/item17-refactor/report.md),
|
|
199
|
+
and [three-language examples](https://github.com/nahisaho/musubix7/blob/724998279e5221b2a9f7bccb63caec511809bfa5/examples/README.md).
|
|
200
|
+
These link to pinned Git source because they are not shipped in npm.
|
|
201
|
+
The [host reference](.github/skills/sdd-tdd/references/hosts.md) predates the later
|
|
202
|
+
Linux Claude session when it says Claude was not session-tested; use the table
|
|
203
|
+
and records above for that later observation. Past success is not current-version success.
|
|
204
|
+
|
|
205
|
+
## License
|
|
206
|
+
|
|
207
|
+
musubix7 code, Skills, documentation, and examples are under the
|
|
208
|
+
[MIT License](LICENSE), except where otherwise noted. Copy whole Skill
|
|
209
|
+
directories including their `LICENSE`, and retain the copyright and permission
|
|
210
|
+
notices when copying, modifying, or redistributing. `init` includes the notices
|
|
211
|
+
in each Skill; it does not change your project's license. Dependencies and
|
|
212
|
+
third-party material remain subject to their own terms.
|
package/bin/musubix.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
3
|
+
import { readFileSync } from 'node:fs';
|
|
4
|
+
import { installSkills } from '../.github/skills/sdd-tdd/scripts/install.mjs';
|
|
5
|
+
|
|
6
|
+
if (process.argv.length !== 3 || process.argv[2] !== 'init') {
|
|
7
|
+
console.error('usage: musubix init (install both Skills into both hosts in the current directory)');
|
|
8
|
+
process.exitCode = 1;
|
|
9
|
+
} else {
|
|
10
|
+
const { version } = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
11
|
+
const sources = ['sdd-tdd', 'existing-code-requirements'].map((skill) => ({
|
|
12
|
+
skill, source: fileURLToPath(new URL(`../.github/skills/${skill}/`, import.meta.url)),
|
|
13
|
+
}));
|
|
14
|
+
const result = installSkills(sources, process.cwd(), {
|
|
15
|
+
mode: 'copy', identity: `musubix7@${version}`, apply: true,
|
|
16
|
+
});
|
|
17
|
+
console.log(JSON.stringify(result));
|
|
18
|
+
if (!result.ok) process.exitCode = 1;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "musubix7",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Small SDD/TDD and existing-code requirements Agent Skills",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "git+https://github.com/nahisaho/musubix7.git"
|
|
8
9
|
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"type": "module",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=22"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"musubix": "bin/musubix.mjs"
|
|
12
16
|
},
|
|
13
17
|
"files": [
|
|
14
|
-
".
|
|
15
|
-
"
|
|
16
|
-
|
|
18
|
+
"bin/musubix.mjs",
|
|
19
|
+
".github/skills/sdd-tdd/",
|
|
20
|
+
".github/skills/existing-code-requirements/",
|
|
21
|
+
"README.md",
|
|
22
|
+
"README-ja.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"test": "node --test tests/*.test.mjs"
|
|
27
|
+
}
|
|
17
28
|
}
|