Specdd refactor
全球最大的 Claude Code 技能聚合库 · 收录 3900+ 来自 12+ 来源的技能,提供在线搜索与趋势分析看板 / The world's largest Claude Code skill aggregation hub — 3900+ skills from 12+ sources with online search and trend dashboard
npx -y skills add bg-szy/TOP-SKILLS --skill specdd-refactorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when Agent needs to refactor code, tests, docs, specs, or project structure while preserving active SpecDD behavior.
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.4 KB, as published. Nobody here has run it
SpecDD Refactor
Use this skill for structure changes that should not change specified behavior.
Skill Scope
Use this skill only for projects that already have a root .specdd/bootstrap.md and are therefore SpecDD projects.
If .specdd/bootstrap.md is missing, do not continue with this skill. Use specdd-adopt only when the operator explicitly asks to add or adopt SpecDD in a new or existing non-SpecDD project.
Bootstrap Resolution
Ensure you know the active bootstrap chain for the target project. If it is not already reliable in the current context, read bootstrap files in this exact order:
.specdd/bootstrap.md.specdd/bootstrap.project.md, if it exists.specdd/bootstrap.local.md, if it exists
Apply them in that order. Later files may narrow or specialize earlier rules, but must not silently weaken project contracts, inherited constraints, or write authority.
Do not reread bootstrap files merely because another SpecDD skill or workflow phase starts. Reread the specific bootstrap file only when the active project root changes, a bootstrap file may have changed, or you need exact bootstrap text for a decision, quote, comparison, authorization, or report.
Spec Chain Resolution
Before planning, editing, reviewing, testing, or reporting on a target, ensure the effective spec chain for that target is known:
- Identify the target path, task, behavior, or changed files.
- Resolve the effective spec chain using the active bootstrap rules.
- Include same-directory basename specs when applicable.
- Walk ancestor specs from the selected content root to the target.
- Read explicit
Referencesonly when they affect the requested work. - Read or reread the specific governing specs needed for the current decision when exact contract text is not already reliable in context.
- Identify the nearest local spec that grants write authority before any edit.
Do not infer authority from similar filenames, nearby files, symbols, module names, or conventions unless the active bootstrap or a governing spec explicitly defines that mapping.
Do not reread an entire chain just because a workflow phase changed. Reopen the narrowest relevant spec when you need to apply, quote, compare, authorize, report, or edit against exact text, when the target scope changes, when a governing spec may have changed, or when earlier context came only from CLI output or a summary.
Workflow
- Identify public contracts, scenarios, invariants, dependencies, and forbidden boundaries.
- Confirm write authority for every file that would move or change.
- Prefer small mechanical steps with verification between risky changes.
- Run baseline checks before refactoring when practical, then rerun after.
Refactor Rules
- Preserve behavior described by active specs.
- Do not move responsibility across spec boundaries unless the specs or user request require it.
- Do not widen dependencies or add forbidden imports.
- Do not rename public symbols, paths, or contracts unless explicitly in scope.
- Update specs, docs, and tests only when the refactor changes structure they describe.
If behavior must change to complete the request, stop treating it as a pure refactor and resolve authority for the behavior change.