dld-kit 1.0.0-rc.4 → 1.0.0-rc.5
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 +4 -2
- package/dist/dld.mjs +2434 -1650
- package/package.json +1 -1
- package/skills/dld-adjust/SKILL.md +41 -24
- package/skills/dld-audit/SKILL.md +11 -4
- package/skills/dld-audit-auto/SKILL.md +20 -5
- package/skills/dld-common/SKILL.md +1 -1
- package/skills/dld-common/scripts/dld.mjs +2434 -1650
- package/skills/dld-decide/SKILL.md +21 -5
- package/skills/dld-implement/SKILL.md +28 -7
- package/skills/dld-init/SKILL.md +2 -2
- package/skills/dld-lookup/SKILL.md +27 -5
- package/skills/dld-plan/SKILL.md +21 -5
- package/skills/dld-reindex/SKILL.md +4 -2
- package/skills/dld-retrofit/SKILL.md +2 -2
- package/skills/dld-snapshot/SKILL.md +49 -18
- package/skills/dld-status/SKILL.md +1 -1
- package/templates/rules/dld-workflow.md +1 -0
- package/templates/skills/dld-adjust/SKILL.md +40 -23
- package/templates/skills/dld-audit/SKILL.md +10 -3
- package/templates/skills/dld-audit-auto/SKILL.md +19 -4
- package/templates/skills/dld-decide/SKILL.md +20 -4
- package/templates/skills/dld-implement/SKILL.md +27 -6
- package/templates/skills/dld-init/SKILL.md +1 -1
- package/templates/skills/dld-lookup/SKILL.md +26 -4
- package/templates/skills/dld-plan/SKILL.md +20 -4
- package/templates/skills/dld-reindex/SKILL.md +3 -1
- package/templates/skills/dld-retrofit/SKILL.md +1 -1
- package/templates/skills/dld-snapshot/SKILL.md +48 -17
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ function retryWithBackoff(fn: () => Promise<Response>): Promise<Response> {
|
|
|
73
73
|
|
|
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
77
|
- **The docs are generated.** `/dld-snapshot` builds `OVERVIEW.md` and `SNAPSHOT.md` 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.
|
|
@@ -150,6 +150,7 @@ Tessl installs and skills copied to other folders need one more step first: see
|
|
|
150
150
|
- **`implement_review: false`** skips the review subagent in `/dld-implement`.
|
|
151
151
|
- **`snapshot_artifacts`** adds documents for `/dld-snapshot` to generate, each from a prompt you write.
|
|
152
152
|
- **`annotation_exclude`** lists paths whose `@decision` comments are only examples, such as docs.
|
|
153
|
+
- **`decision_edits`** sets whether agents may edit the prose of decisions already on the main branch: `block` (default), `ask` or `allow`.
|
|
153
154
|
|
|
154
155
|
All the options: [project configuration](docs/framework/project-configuration.md).
|
|
155
156
|
|
|
@@ -173,10 +174,11 @@ Run `npx dld-kit <command>`, or `npm install --global dld-kit` for a `dld` comma
|
|
|
173
174
|
| `dld update` | Update the installed skills and rule; `--agent` adds agents |
|
|
174
175
|
| `dld install-rule --agent <names>` | Install or refresh only the always-on rule |
|
|
175
176
|
| `dld session-context --agent <name>` | Print the rule for a session hook, unless the agent loads it already (used by the Claude Code plugin) |
|
|
177
|
+
| `dld check-decision-edits` | List edits to the prose of decisions already on the base branch; exits 3 under `decision_edits: block`, for a CI gate ([details](docs/framework/project-configuration.md#decision-edits)) |
|
|
176
178
|
|
|
177
179
|
`init` and `update` won't overwrite files from a newer dld-kit unless you pass `--force`.
|
|
178
180
|
|
|
179
|
-
These
|
|
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.
|
|
180
182
|
|
|
181
183
|
## Learn more
|
|
182
184
|
|