@sddio/cli 0.1.0 → 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/README.md +37 -40
- package/dist/agents.js +3 -1
- package/dist/brief.js +104 -0
- package/dist/check.js +109 -0
- package/dist/claims.js +60 -0
- package/dist/cli.js +222 -21
- package/dist/cursor.js +65 -0
- package/dist/events.js +37 -0
- package/dist/hooks.js +68 -0
- package/dist/init.js +62 -7
- package/dist/prompt.js +13 -11
- package/dist/repo.js +93 -0
- package/dist/workspace.js +3 -8
- package/package.json +3 -3
- package/templates/.sddio/context/README.md +0 -1
- package/templates/.sddio/context/config.json +14 -3
- package/templates/.sddio/context/instructions/adr.md +7 -0
- package/templates/.sddio/context/instructions/bootstrap.md +28 -16
- package/templates/.sddio/context/instructions/entries.md +10 -0
- package/templates/.sddio/context/instructions/reconciliation.md +12 -12
- package/templates/.sddio/context/instructions/spec.md +15 -0
- package/templates/.sddio/context/instructions.md +35 -120
- package/templates/.sddio/context/routes/routes.md +3 -2
- package/templates/.sddio/context/writing.md +80 -0
- package/dist/skill.js +0 -18
- package/templates/.sddio/context/instructions/flow.md +0 -45
- package/templates/.sddio/context/principles.md +0 -46
- package/templates/.sddio/skill/SKILL.md +0 -33
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# FLOW
|
|
2
|
-
|
|
3
|
-
`FLOW` represents implementation work.
|
|
4
|
-
|
|
5
|
-
## Create
|
|
6
|
-
|
|
7
|
-
Create or update a flow when implementation work needs persistent progress tracking.
|
|
8
|
-
|
|
9
|
-
## Rule
|
|
10
|
-
|
|
11
|
-
Keep `FLOW` focused on:
|
|
12
|
-
|
|
13
|
-
- current work
|
|
14
|
-
- relevant steps
|
|
15
|
-
- implementation state
|
|
16
|
-
- completion state
|
|
17
|
-
|
|
18
|
-
Do not use `FLOW` as permanent project documentation.
|
|
19
|
-
|
|
20
|
-
## Facts a FLOW carries
|
|
21
|
-
|
|
22
|
-
- Front matter carries `phases`, each with `code` and `verified` as separate markers.
|
|
23
|
-
- `code` means written; `verified` means a command ran and returned the expected value.
|
|
24
|
-
- Record the number before and the number after, each with the command that produced it.
|
|
25
|
-
- Write status once, in the front matter, and nowhere else.
|
|
26
|
-
- Name the residual at close: what was not done, and who owes it.
|
|
27
|
-
|
|
28
|
-
| Marker | Means |
|
|
29
|
-
| ------ | ---------------------------------------- |
|
|
30
|
-
| `[ ]` | Not started |
|
|
31
|
-
| `[~]` | Started, not finished |
|
|
32
|
-
| `[v]` | Written, not proven — no command has run |
|
|
33
|
-
| `[x]` | Proven — the command ran as expected |
|
|
34
|
-
| `[!]` | Failed or blocked outside this work |
|
|
35
|
-
| `[-]` | Dropped, with the reason on the line |
|
|
36
|
-
|
|
37
|
-
These are facts a plan records, not fields a tool validates — `ADR-004` keeps `FLOW` schema-free.
|
|
38
|
-
|
|
39
|
-
## Completion
|
|
40
|
-
|
|
41
|
-
When work is complete:
|
|
42
|
-
|
|
43
|
-
1. Validate the implementation.
|
|
44
|
-
2. Move the flow to `flow/completed`.
|
|
45
|
-
3. Run Reconciliation.
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
|
@@ -1,33 +0,0 @@
|
|
|
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.
|