dld-kit 1.0.0-rc.5 → 1.0.0-rc.6
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 +9 -8
- package/dist/dld.mjs +545 -131
- package/package.json +8 -6
- package/skills/dld-adjust/SKILL.md +4 -4
- package/skills/dld-audit/SKILL.md +33 -13
- package/skills/dld-audit-auto/SKILL.md +19 -7
- package/skills/dld-common/SKILL.md +2 -2
- package/skills/dld-common/scripts/dld.mjs +545 -131
- package/skills/dld-decide/SKILL.md +38 -11
- package/skills/dld-implement/SKILL.md +19 -9
- package/skills/dld-init/SKILL.md +3 -3
- package/skills/dld-lookup/SKILL.md +3 -3
- package/skills/dld-plan/SKILL.md +107 -12
- package/skills/dld-reindex/SKILL.md +4 -4
- package/skills/dld-retrofit/SKILL.md +23 -9
- package/skills/dld-snapshot/SKILL.md +31 -104
- package/skills/dld-status/SKILL.md +1 -1
- package/templates/rules/dld-workflow.md +2 -2
- package/templates/skills/dld-adjust/SKILL.md +2 -2
- package/templates/skills/dld-audit/SKILL.md +31 -11
- package/templates/skills/dld-audit-auto/SKILL.md +17 -5
- package/templates/skills/dld-common/SKILL.md +1 -1
- package/templates/skills/dld-decide/SKILL.md +36 -9
- package/templates/skills/dld-implement/SKILL.md +17 -7
- package/templates/skills/dld-init/SKILL.md +1 -1
- package/templates/skills/dld-lookup/SKILL.md +1 -1
- package/templates/skills/dld-plan/SKILL.md +105 -10
- package/templates/skills/dld-reindex/SKILL.md +2 -2
- package/templates/skills/dld-retrofit/SKILL.md +21 -7
- package/templates/skills/dld-snapshot/SKILL.md +29 -102
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Code is full of choices that look odd without their reason: a retry tuned to one
|
|
|
6
6
|
|
|
7
7
|
<picture>
|
|
8
8
|
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/dld-workflow-dark.svg">
|
|
9
|
-
<img src="docs/assets/dld-workflow-light.svg" width="880" alt="DLD workflow: /dld-plan records proposed decisions; /dld-implement writes and reviews the code and links it to the decisions with @decision comments; /dld-snapshot, run on demand, on a schedule or in CI, generates OVERVIEW.md
|
|
9
|
+
<img src="docs/assets/dld-workflow-light.svg" width="880" alt="DLD workflow: /dld-plan records proposed decisions; /dld-implement writes and reviews the code and links it to the decisions with @decision comments; /dld-snapshot, run on demand, on a schedule or in CI, generates OVERVIEW.md. Agents read the linked decision before editing annotated code.">
|
|
10
10
|
</picture>
|
|
11
11
|
|
|
12
12
|
> [!NOTE]
|
|
@@ -18,7 +18,7 @@ DLD Kit is a set of [Agent Skills](https://agentskills.io) for Claude Code, Code
|
|
|
18
18
|
|
|
19
19
|
## Quickstart
|
|
20
20
|
|
|
21
|
-
You need Node.js
|
|
21
|
+
You need Node.js 22+ and git. In the root of your repository, run:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
npx dld-kit init
|
|
@@ -34,7 +34,7 @@ Then, in your agent:
|
|
|
34
34
|
/dld-snapshot
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
`/dld-plan` talks the feature through with you and records proposed decisions. `/dld-implement` writes the code, has it reviewed, and adds the `@decision` comments. `/dld-snapshot` regenerates `OVERVIEW.md`
|
|
37
|
+
`/dld-plan` talks the feature through with you and records proposed decisions. `/dld-implement` writes the code, has it reviewed, and adds the `@decision` comments. `/dld-snapshot` regenerates `OVERVIEW.md` from the decisions.
|
|
38
38
|
|
|
39
39
|
These are Claude Code's slash commands. In Pi, use `/skill:dld-plan`. In other agents, ask for the skill by name: "use the dld-plan skill to plan retries for the payment client".
|
|
40
40
|
|
|
@@ -74,7 +74,7 @@ function retryWithBackoff(fn: () => Promise<Response>): Promise<Response> {
|
|
|
74
74
|
The **always-on rule** is a short instruction installed for each agent: read the decision behind an annotation before changing that code. If a change would contradict it, the agent checks with you, and a new decision records the change.
|
|
75
75
|
|
|
76
76
|
- **Merged decisions aren't rewritten.** While a decision is only on your branch, edit it as much as you like. Once it's on the main branch, you don't edit its reasoning: to change course, record a new decision that supersedes or amends it, so the history stays complete. The frontmatter (`status`, `references`, links, title) can always be updated; `id` and `timestamp` can't. `decision_edits` in the config can relax this. Statuses run `proposed` → `accepted` → `superseded` or `deprecated`.
|
|
77
|
-
- **The docs are generated.** `/dld-snapshot` builds `OVERVIEW.md
|
|
77
|
+
- **The docs are generated.** `/dld-snapshot` builds `OVERVIEW.md`, and any documents you define in `snapshot_artifacts`, from the decisions. You never edit a spec by hand.
|
|
78
78
|
- **Drift gets caught.** `/dld-audit` finds annotations without a decision, references to files that no longer exist, and annotated code that changed.
|
|
79
79
|
- **Conventions live in one file.** An optional `decisions/PRACTICES.md` holds your testing, style and architecture conventions, and `/dld-implement` follows it.
|
|
80
80
|
|
|
@@ -103,13 +103,13 @@ More detail, with diagrams: [workflows](docs/workflows.md).
|
|
|
103
103
|
| `/dld-status` | Summarize the decision log |
|
|
104
104
|
| `/dld-audit` | Find drift between decisions and code |
|
|
105
105
|
| `/dld-audit-auto` | Audit, fix and open a PR, for scheduled runs |
|
|
106
|
-
| `/dld-snapshot` | Generate `OVERVIEW.md` and
|
|
106
|
+
| `/dld-snapshot` | Generate `OVERVIEW.md` and your custom artifacts from the decisions |
|
|
107
107
|
| `/dld-retrofit` | Write decisions for existing code, broadly or in detail |
|
|
108
108
|
| `/dld-reindex` | Fix decision ID clashes with the base branch and open PRs |
|
|
109
109
|
|
|
110
110
|
## Install
|
|
111
111
|
|
|
112
|
-
Every option installs the same skills. You need Node.js
|
|
112
|
+
Every option installs the same skills. You need Node.js 22+ and git. `gh` is optional: `/dld-reindex` uses it to check open PRs.
|
|
113
113
|
|
|
114
114
|
### Which one to use
|
|
115
115
|
|
|
@@ -147,7 +147,8 @@ Tessl installs and skills copied to other folders need one more step first: see
|
|
|
147
147
|
`dld.config.yaml` holds the settings. The ones you're most likely to change:
|
|
148
148
|
|
|
149
149
|
- **`mode: namespaced`** with a `namespaces` list gives each area of a monorepo its own decision folder (`npx dld-kit init --namespaces billing,auth`). IDs stay unique across namespaces.
|
|
150
|
-
- **`implement_review: false`** skips the review subagent in `/dld-implement`.
|
|
150
|
+
- **`implement_review: false`** skips the review subagent in `/dld-implement`; **`plan_review: true`** adds one to `/dld-plan`. **`review_model`** picks the model the reviewers run on.
|
|
151
|
+
- **`dld.local.yaml`**, which isn't committed, holds your own review settings for a checkout, over the team's.
|
|
151
152
|
- **`snapshot_artifacts`** adds documents for `/dld-snapshot` to generate, each from a prompt you write.
|
|
152
153
|
- **`annotation_exclude`** lists paths whose `@decision` comments are only examples, such as docs.
|
|
153
154
|
- **`decision_edits`** sets whether agents may edit the prose of decisions already on the main branch: `block` (default), `ask` or `allow`.
|
|
@@ -178,7 +179,7 @@ Run `npx dld-kit <command>`, or `npm install --global dld-kit` for a `dld` comma
|
|
|
178
179
|
|
|
179
180
|
`init` and `update` won't overwrite files from a newer dld-kit unless you pass `--force`.
|
|
180
181
|
|
|
181
|
-
These five commands, with their flags, exit codes and documented output, follow semantic versioning, as do `--help` and `--version`. The other commands in `dld --help` (`next-id`, `create-decision`, `regenerate-index` and so on) are internal: the skills run them from their bundled copy, and they can change in a minor release. Don't script against them.
|
|
182
|
+
These five commands, with their flags, exit codes and documented output, follow semantic versioning, as do `--help` and `--version`. So do the formats and names your project relies on: decision records, annotations, `dld.config.yaml`, the skill names and the install channels; [What a version number promises](docs/releasing.md#what-a-version-number-promises) has the full list. The other commands in `dld --help` (`next-id`, `create-decision`, `regenerate-index` and so on) are internal: the skills run them from their bundled copy, and they can change in a minor release. Don't script against them.
|
|
182
183
|
|
|
183
184
|
## Learn more
|
|
184
185
|
|