Automated summary
This skill implements one or more proposed decisions by making code changes, adding @decision annotations, and updating decision status.
Strengths
- Systematically applies logged decisions to the codebase
- Automatically batches coupled decisions together
- Updates both annotations and decision status
- Can implement all proposed decisions with a single command
Limitations
- Requires decisions to already exist via /dld-decide
- Cannot handle major discoveries that invalidate the decision intent
- Depends on dld.config.yaml being set up
Use this skill when you have a proposed decision ready to be coded and want to apply it with full traceability and annotation.
Do not use it for making decisions or for code changes unrelated to a logged decision.
Security analysis
CautionThe skill instructs the AI to execute local bash scripts for updating decision status and verifying annotations. While these scripts are part of the skill's intended workflow and do not obviously exfiltrate data or cause destruction, any bash execution carries inherent risk, especially if the skill's script contents are not fully trusted. The skill does not download or execute external payloads, and the risk is limited to the project's own environment.
- •Runs bash scripts (update-status.sh, verify-annotations.sh) from a local .claude/skills path, which could be risky if the scripts are compromised or misconfigured.
Examples
/dld-implement/dld-implement DL-005 DL-006/dld-implement tag:payment-gatewayname: dld-implement
description: Implement one or more proposed decisions. Makes code changes, adds @decision annotations, and updates decision status.
user_invocable: true
/dld-implement — Implement Decisions
You are implementing one or more proposed decisions by making code changes, adding @decision annotations, and updating the decision records.
Script Paths
Shared scripts:
.claude/skills/dld-common/scripts/regenerate-index.sh
.claude/skills/dld-common/scripts/update-status.sh
Skill-specific scripts:
.claude/skills/dld-implement/scripts/verify-annotations.sh
Prerequisites
- Check that
dld.config.yamlexists at the repo root. If not, tell the user to run/dld-initfirst and stop. - Parse the user's input to identify which decision(s) to implement:
- Specific IDs:
DL-005,DL-005 DL-006 - By tag:
tag:payment-gateway - No arguments: If the user runs
/dld-implementwithout specifying decisions, find all decisions withstatus: proposedin the records subdirectory (decisions/records/) and implement all of them.
- Specific IDs:
- Read each referenced decision file. Verify they exist and have
status: proposed. If a decision is alreadyaccepted, tell the user and skip it. If it doesn't exist, report the error.
Read project context
- Read
dld.config.yamlfor project structure - Read
decisions/PRACTICES.mdif it exists — this is where practices guidance is most important. Apply the project's testing approach, code style, error handling patterns, and architecture conventions when writing code. - For namespaced projects, also read
decisions/records/<namespace>/PRACTICES.mdfor namespace-specific practices
Implementation
Batch vs. single implementation
When multiple decisions are requested, decide whether to implement them individually or as a batch:
- Batch together decisions that are tightly coupled — they touch the same code, share types, or depend on each other so heavily that implementing one without the others would produce incomplete or throwaway code (e.g., a data model + its validation + its state machine).
- Implement separately decisions that are independent — they touch different areas of the codebase and can stand on their own.
When batching, implement all the code together, add annotations for all decisions, then update each decision record and status individually in step 4.
1. Understand the decision(s)
Read each decision record carefully. Understand:
- What was decided
- The rationale and constraints
- The code areas referenced
- Any superseded decisions (read those too for context on what changed)
2. Make code changes
Implement the decision(s) by modifying the codebase. Follow the practices manifest if one exists.
Refining decisions during implementation: While implementing, you may discover details that weren't anticipated during planning — a specific threshold value, an edge case handling approach, or a refinement to the original design. Since the decision is still in proposed status, it is mutable and can be updated:
- Small refinements (implementation details, specific values, edge cases that don't change the decision's intent) — update the decision record inline. Amend the Decision, Rationale, or Consequences sections as needed. This is expected and encouraged.
- Major discoveries (a fundamentally different approach is needed, or an entirely new design concern surfaces) — stop and suggest the user run
/dld-decideto record a separate decision. If the new discovery invalidates the current decision, it may need to be superseded instead.
The boundary: if the discovery changes the intent of the decision, it's a new decision. If it refines the implementation details, update the current one.
3. Add @decision annotations
This step is mandatory. Every implemented decision MUST have at least one @decision(DL-NNN) annotation in the source code. Updating the decision record's references field alone is not sufficient. The annotation in code is what triggers AI agents to look up the decision before modifying the annotated code.
Add @decision(DL-NNN) annotations to the code you modified or created. Place annotations in comments near the relevant code.
Where to annotate:
- Functions, methods, or classes that embody the decision
- Configuration or constants that were chosen based on the decision
- Key logic branches where the decision's rationale matters
Annotation format (adapt comment syntax to the language):
// @decision(DL-012)
function calculateVAT(order: Order): Money {
// ...
}
# @decision(DL-012)
def calculate_vat(order: Order) -> Money:
...
Guidelines:
- Annotate at the declaration level, not every line
- One annotation per decision per code location
- Multiple decisions can annotate the same code:
// @decision(DL-012) @decision(DL-015) - Use the
annotation_prefixfromdld.config.yaml(default:@decision)
4. Update decision records
For each implemented decision:
-
Update the
referencesfield in the decision record's YAML frontmatter. Edit the file directly — add the code paths and symbols that were annotated. Example:references: - path: src/billing/vat.ts symbol: calculateVAT - path: src/billing/vat.test.ts -
Update status from
proposedtoaccepted:bash .claude/skills/dld-common/scripts/update-status.sh DL-NNN accepted
5. Verify annotations
After updating all decision records, run the verification script to confirm every implemented decision has at least one @decision annotation in the codebase:
bash .claude/skills/dld-implement/scripts/verify-annotations.sh DL-005 DL-006
Pass all the decision IDs that were implemented. If any are missing annotations, the script will report them and exit with an error. Go back and add the missing annotations before proceeding.
6. Regenerate INDEX.md
bash .claude/skills/dld-common/scripts/regenerate-index.sh
7. Suggest next steps
Implemented and accepted: DL-NNN (<title>)
Code changes:
src/billing/vat.ts— modifiedcalculateVAT(annotated with@decision(DL-NNN))src/billing/vat.test.ts— added testsNext steps:
/dld-decide— record another decision/dld-audit— check for drift between decisions and code
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/implement-decisions-mmk3nhan/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/implement-decisions-mmk3nhan' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/implement-decisions-mmk3nhan/download' --output '.skill-downloads/implement-decisions-mmk3nhan/SKILL.md.part' && mv '.skill-downloads/implement-decisions-mmk3nhan/SKILL.md.part' '.skill-downloads/implement-decisions-mmk3nhan/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Original excerpt: Prerequisites
- Check that
dld.config.yamlexists at the repo root. If not, tell the user to run/dld-initfirst and stop. - Parse the user's input to identify which decision(s) to implement:
- Specific IDs:
DL-005,DL-005 DL-006 - By tag:
tag:payment-gateway - No arguments: If the user runs
/dld-implementwithout specifying decisions, find all decisions withstatus: proposedin the records subdirectory (decisions/records/) and implement all of them.
- Specific IDs:
- Read each referenced decision file. Verify they exist and have
status: proposed. If a decision is alreadyaccepted, tell the user and skip it. If it doesn't exist, report the error.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/implement-decisions-mmk3nhan/SKILL.md' && test -s '.skill-downloads/implement-decisions-mmk3nhan/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/dld-implement' && cp -R '.skill-downloads/implement-decisions-mmk3nhan' '.claude/skills/dld-implement'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/implement-decisions-mmk3nhan'openskills read 'implement-decisions-mmk3nhan'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/implement-decisions-mmk3nhan/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.