Decision-Linked Development (DLD) — a workflow for recording, linking, and maintaining development decisions alongside code. Skills for planning, recording, implementing, auditing, and documenting decisions via @decision annotations.
68
Quality
68%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
You are looking up decision records. This skill is used in two ways:
@decision(DL-XXX) annotations in code you're reading or about to modify, look up the decision to understand the rationale before proceeding. This is not optional.Check that dld.config.yaml exists at the repo root. If not, tell the user to run /dld-init first and stop.
Read dld.config.yaml to understand the project structure (flat vs namespaced, decisions directory). The decisions directory path can be resolved by reading the decisions_dir field from dld.config.yaml. Decision records (DL-*.md) live in the records/ subdirectory under the decisions directory.
Parse the user's input to determine the query type:
/dld-lookup DL-047Find and read the decision file DL-047.md. Search the records subdirectory (decisions/records/, including namespace subdirectories) for the file.
Display the full decision record.
/dld-lookup tag:payment-gatewayScan all decision files and find those with the matching tag in their YAML frontmatter tags field.
Display a summary table, then offer to show full details for any specific decision:
Found 3 decisions tagged `payment-gateway`:
| ID | Title | Status |
|----|-------|--------|
| DL-045 | Payment gateway retry strategy | accepted |
| DL-046 | Idempotency key format | proposed |
| DL-047 | Gateway timeout handling | proposed |
Would you like to see the full details for any of these?/dld-lookup path:src/billing/vat.tsScan all decision files and find those with a matching path in their references field. Match both exact paths and partial paths (e.g., vat.ts should match src/billing/vat.ts).
Display results the same way as tag lookup.
/dld-lookup <search terms>If the input doesn't match the DL-NNN, tag:, or path: patterns, treat it as a keyword search. Search across:
Display results the same way as tag lookup.
@decision annotations)When you encounter @decision(DL-XXX) in code — whether you are reading, modifying, or reviewing it — you MUST look up the referenced decision before proceeding. This applies to all interactions with annotated code, not just when explicitly asked.
After reading the decision:
/dld-decide that supersedes the existing one. Do not silently modify code in a way that contradicts an active decision.This is the core DLD feedback loop — @decision annotations are mechanical triggers that ensure design rationale is consulted before code is changed.