com um clique
upgrade
Upgrade DLD framework files from latest template on GitHub.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Upgrade DLD framework files from latest template on GitHub.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Autonomous spec execution with subagents (planner, coder, tester, reviewer).
Autonomous spec execution with subagents (planner, coder, tester, reviewer).
Feature specification and research agent. Multi-agent with 4 scouts. Creates specs in ai/features/.
Feature specification and research agent. Multi-agent with 4 scouts. Creates specs in ai/features/.
Manual QA tester — tests product behavior like a real user, not code. Triggers on keywords: test, QA, check behavior, verify feature, manual testing, протестируй, потыкай, проверь как работает
Systematic code analysis (READ-ONLY). Light mode for focused checks, Deep mode for full forensics with 6 parallel personas.
| name | upgrade |
| description | Upgrade DLD framework files from latest template on GitHub. |
Deterministic upgrade of DLD skills, agents, hooks, rules, and scripts from the latest template.
Key principle: The upgrade.mjs script does ALL file operations. You NEVER copy or modify files directly. You only:
node --version >= 18.claude/scripts/upgrade.mjs existsnpx create-dld to set up a DLD project first."node .claude/scripts/upgrade.mjs --analyze
Parse the JSON output. If exit code 2: "Your DLD is up to date. No changes needed."
If exit code 1: show error message from JSON and stop.
Show grouped summary to user:
DLD Upgrade Report
==================
Template commit: {report.template_commit}
Summary: {identical} up to date, {new_files} new, {different} changed, {protected} protected
Groups:
agents: {N} new, {N} changed ({M} customized) [safe — auto-update pristine only]
hooks: {N} new, {N} changed ({M} customized) [safe — auto-update pristine only]
git-hooks: {N} new, {N} changed [safe — wrapper file; activates core.hooksPath on apply]
skills: {N} new, {N} changed [review recommended]
rules: {N} new, {N} changed [review — contains project-specific ADRs/dependencies]
scripts-claude: {N} new, {N} changed [review — may contain custom project scripts]
scripts-bash: {N} new, {N} changed [review — may contain custom project scripts]
settings: {N} changed [always ask]
Protected (never touched): {protected count} files
User-only (your files, untouched): {user_only count} files
Note: "customized" = files you modified since last upgrade (tracked via hash in .dld-version).
Customized files in safe groups are NOT auto-applied — they go to Step 4 for per-file review.
On first upgrade (no hash history), all changed files require review (conservative default).
Ask: "Apply safe groups automatically? (agents, hooks, git-hooks — only pristine files) Y/n"
If yes:
node .claude/scripts/upgrade.mjs --apply --groups safe,new
If the result JSON contains git_hooks.activated: true, append to the user message:
Activated pre-commit hook: git config core.hooksPath .git-hooks
(ADR-187/ADR-193 — blocks unauthorized lifecycle yaml writes)
If git_hooks.reason is present (activation failed — rare), show the reason as
a warning. The wrapper file was still applied; only the git config step
failed (e.g. non-git target). User can re-run manually: git config core.hooksPath .git-hooks.
If report contains infrastructure files with changes:
Show:
ENGINE UPDATE (requires explicit approval):
.claude/scripts/upgrade.mjs — {status}
.claude/hooks/run-hook.mjs — {status}
For each, show diff:
node .claude/scripts/upgrade.mjs --diff --file {path}
Ask: "Apply engine update? Y/n"
If yes:
node .claude/scripts/upgrade.mjs --apply --files {path}
For each non-safe group with changes (skills, settings):
Note: hooks.config.mjs is PROTECTED and will never appear here. Users should use hooks.config.local.mjs for project-specific hook customizations — it is never touched by upgrades.
Show per-file diff:
node .claude/scripts/upgrade.mjs --diff --file {path}
For each file ask: "Take template version / Keep yours / Skip"
If "take":
node .claude/scripts/upgrade.mjs --apply --files {path}
After all applies, run analyze again:
node .claude/scripts/upgrade.mjs --analyze
Report final state:
Upgrade complete.
Applied: {N} files
Skipped: {N} files (user decision)
Protected: {N} files (never touched)
Remaining differences: {N} files
Restart Claude Code to activate changes.
If result contains validation_issues, show warning:
WARNING: Post-apply validation failed:
{validation_issues[]}
Check .dld-upgrade-log for details.
If result contains rolled_back: true, inform user:
ROLLBACK: Changes were rolled back due to validation failure.
Stash ref: {stash_ref} (run `git stash show {stash_ref}` to inspect)
No files were modified.
If report contains deprecated files present in the project, offer cleanup:
DEPRECATED FILES found in your project:
{deprecated_files[]}
These were removed from DLD template. Run cleanup? Y/n
If yes:
node .claude/scripts/upgrade.mjs --cleanup
--local modenode .claude/scripts/upgrade.mjs --cleanup