@sddio/cli 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +142 -2
- package/dist/agents.js +33 -0
- package/dist/cli.js +140 -0
- package/dist/init.js +117 -0
- package/dist/paths.js +31 -0
- package/dist/prompt.js +61 -0
- package/dist/skill.js +18 -0
- package/dist/workspace.js +30 -0
- package/package.json +54 -4
- package/templates/.sddio/context/README.md +82 -0
- package/templates/.sddio/context/config.json +5 -0
- package/templates/.sddio/context/instructions/.schema/adr.md +28 -0
- package/templates/.sddio/context/instructions/.schema/discussion.md +16 -0
- package/templates/.sddio/context/instructions/.schema/spec.md +15 -0
- package/templates/.sddio/context/instructions/adr.md +36 -0
- package/templates/.sddio/context/instructions/bootstrap.md +42 -0
- package/templates/.sddio/context/instructions/discussion.md +31 -0
- package/templates/.sddio/context/instructions/entries.md +51 -0
- package/templates/.sddio/context/instructions/flow.md +45 -0
- package/templates/.sddio/context/instructions/reconciliation.md +92 -0
- package/templates/.sddio/context/instructions/spec.md +35 -0
- package/templates/.sddio/context/instructions.md +149 -0
- package/templates/.sddio/context/preferences.md +16 -0
- package/templates/.sddio/context/principles.md +46 -0
- package/templates/.sddio/context/roadmap.md +28 -0
- package/templates/.sddio/context/routes/routes.md +25 -0
- package/templates/.sddio/skill/SKILL.md +33 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Principles
|
|
2
|
+
|
|
3
|
+
## Core
|
|
4
|
+
|
|
5
|
+
1. Keep artifacts minimal and focused.
|
|
6
|
+
2. Preserve human readability.
|
|
7
|
+
3. Make important structure explicit for AI.
|
|
8
|
+
4. Prefer structured Markdown when structure adds value.
|
|
9
|
+
5. Prefer the simplest structure that preserves meaning.
|
|
10
|
+
6. Keep formatting consistent and predictable.
|
|
11
|
+
7. Avoid unnecessary nesting, duplication, and metadata.
|
|
12
|
+
8. Keep important relationships and references explicit.
|
|
13
|
+
|
|
14
|
+
## Design Rule
|
|
15
|
+
|
|
16
|
+
> Use the smallest structure that works well for both humans and AI.
|
|
17
|
+
|
|
18
|
+
## Restraint
|
|
19
|
+
|
|
20
|
+
- Do the least necessary.
|
|
21
|
+
- Add structure only when it provides clear value.
|
|
22
|
+
- Do not add abstraction, terminology, metadata, or prose without a clear need.
|
|
23
|
+
- Prefer the smaller solution when multiple solutions work.
|
|
24
|
+
- Optimize for clarity and usefulness, not sophistication or completeness.
|
|
25
|
+
|
|
26
|
+
## Retirement
|
|
27
|
+
|
|
28
|
+
A rule is removed when it is measured as unfollowed, not when it feels unfollowed.
|
|
29
|
+
|
|
30
|
+
- Apply this to the last three `FLOW`s in `flow/completed/`, not to the whole history.
|
|
31
|
+
- Measure with `grep` for the command the rule names; a rule with no command is judgement.
|
|
32
|
+
- Delete the rule. Restating it in different words is the failure this replaces.
|
|
33
|
+
|
|
34
|
+
## Bootstrap Minimality
|
|
35
|
+
|
|
36
|
+
Bootstrap only what is necessary to establish a useful project model.
|
|
37
|
+
|
|
38
|
+
Do not create:
|
|
39
|
+
|
|
40
|
+
- speculative requirements
|
|
41
|
+
- future requirements
|
|
42
|
+
- implementation summaries
|
|
43
|
+
- file-by-file descriptions
|
|
44
|
+
- duplicate requirements
|
|
45
|
+
- requirements already represented elsewhere
|
|
46
|
+
- artifacts that do not improve future AI work
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Roadmap
|
|
2
|
+
|
|
3
|
+
<!--
|
|
4
|
+
Possible future directions, not current requirements or commitments.
|
|
5
|
+
|
|
6
|
+
When working on current tasks:
|
|
7
|
+
- Do not implement roadmap items unless explicitly requested.
|
|
8
|
+
- Do not treat roadmap items as requirements.
|
|
9
|
+
- Avoid decisions that unnecessarily block roadmap directions.
|
|
10
|
+
- Ask before adding extension points solely for roadmap directions.
|
|
11
|
+
- Do not add abstractions solely for speculative roadmap items.
|
|
12
|
+
- Before implementing a roadmap item, create the required discussion and ADR.
|
|
13
|
+
- Remove the roadmap item once it becomes an active requirement.
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
## Near
|
|
17
|
+
|
|
18
|
+
* Local UI for browsing and querying project knowledge.
|
|
19
|
+
* MCP-based retrieval of project context.
|
|
20
|
+
|
|
21
|
+
## Later
|
|
22
|
+
|
|
23
|
+
* Cross-repository knowledge.
|
|
24
|
+
|
|
25
|
+
## Explore
|
|
26
|
+
|
|
27
|
+
* Automatic reconciliation between git history and project records.
|
|
28
|
+
* Evaluation of SDD effectiveness over time.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Routes
|
|
2
|
+
|
|
3
|
+
## Core
|
|
4
|
+
|
|
5
|
+
| Type | Path | Purpose |
|
|
6
|
+
| ---------- | -------------- | -------------- |
|
|
7
|
+
| SPEC | `spec/` | Requirements |
|
|
8
|
+
| ADR | `adr/` | Decisions |
|
|
9
|
+
| DISCUSSION | `discussions/` | Open questions |
|
|
10
|
+
| INDEX | `README.md` | Route table |
|
|
11
|
+
|
|
12
|
+
FLOW files are rollout plans, not a persistent artifact type, so they are not routed here — see `ADR-004`.
|
|
13
|
+
|
|
14
|
+
## Lookup
|
|
15
|
+
|
|
16
|
+
- SPEC → `spec/`
|
|
17
|
+
- ADR → `adr/`
|
|
18
|
+
- DISCUSSION → `discussions/`
|
|
19
|
+
- Unknown area → `sddio_workspace/README.md`
|
|
20
|
+
|
|
21
|
+
## ID Routing
|
|
22
|
+
|
|
23
|
+
- `SPEC-*` → `spec/`
|
|
24
|
+
- `ADR-*` → `adr/`
|
|
25
|
+
- `DISC-*` → `discussions/`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sddio
|
|
3
|
+
description: Read and maintain this repository's sddio project knowledge (SPEC, ADR, DISCUSSION) when answering why something is built this way, recording a decision, or changing an existing convention. Applies only when the repository root contains .sddio/.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# sddio
|
|
7
|
+
|
|
8
|
+
The authoritative content lives in the repository. This file only points at it.
|
|
9
|
+
|
|
10
|
+
## Check that it applies
|
|
11
|
+
|
|
12
|
+
- Continue only if `.sddio/context/instructions.md` exists at the repository root.
|
|
13
|
+
- If it does not, ignore this skill: the project does not use sddio.
|
|
14
|
+
|
|
15
|
+
## Read
|
|
16
|
+
|
|
17
|
+
- List entries: `grep -rn "^## " sddio_workspace/*/` gives one ID and title per entry.
|
|
18
|
+
- Read one entry by its surrounding 25 lines. Do not read a whole collection to find one entry.
|
|
19
|
+
- Load `.sddio/context/instructions.md` only when the format or the procedure matters.
|
|
20
|
+
|
|
21
|
+
## Write
|
|
22
|
+
|
|
23
|
+
- Classify before writing: requirement, decision, unresolved, or work in progress.
|
|
24
|
+
- Append a new entry. Never rewrite an earlier one.
|
|
25
|
+
- The one sanctioned removal: an entry promoted into a `SPEC` or `ADR` is deleted, and its ID is burned.
|
|
26
|
+
- IDs increase and are never reused, including IDs that were removed.
|
|
27
|
+
- After reconciliation completes, record the commit in `.sddio/context/config.json`.
|
|
28
|
+
|
|
29
|
+
## Boundaries
|
|
30
|
+
|
|
31
|
+
- Do not copy project facts into this skill.
|
|
32
|
+
- Do not create entries for completeness or symmetry.
|
|
33
|
+
- Do not advance the cursor when reconciliation was skipped or partial.
|