deprecation-and-migration
Skill32 starsChanged 5 months agoApache-2.0View on GitHub
Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when deciding whether to maintain or sunset existing code.
34 other projects use a version of this.
Adopted by
Most recently taken up by
- GuillemRoca/agent-skills-androidtheir own version, first seen Oct 3, 2026
- addyosmani/agent-skillstheir own version, first seen Oct 3, 2026
- weisser-dev/agentic-skillstheir own version, first seen Oct 3, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
- vinvcn/addyosmani-agent-skills-zhtheir own version, first seen Sep 15, 2026
- celestialdust/achilles-skillstheir own version, first seen Sep 10, 2026
Used with
Projects with it also use constraint-driven-development, doubt-driven-development and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
vinvcnSkillconstraint-driven-development
把一个项目的质量线确立为书面契约,并阻止 agent 悄悄降低它。通过访谈确定用户在意哪些维度,当用户心里没有数字时提供合理的默认阈值,把一切记录进 CONSTRAINTS.md,并盯住 diff 中质量线被削弱的迹象——新增的 @ts-ignore 或 eslint-disable 抑制注释、被跳过或删除的测试、被剥掉的断言、未实现的 stub、被调低的阈值。当没有任何质量线被写下来时使用;当用户说 "set up constraints" 或 "define our standards" 时;当用户希望把他们在意的维度——无障碍性、Web 性能、覆盖率——设置成被强制执行的约束时;当 agent 为了变绿不断静默检查或跳过测试时;当你需要一个覆盖率或性能阈值却不知道该选什么数字时;或者当 agent 写下的代码超出任何人会读的体量时。
Also in 4 projects that use this
mycelium-hqSkilldoubt-driven-development
Use when correctness matters more than speed: about to commit non-trivial code, make an architectural call under uncertainty, work in unfamiliar code, or assert what the compiler cannot check (''this is safe'', ''thread-safe'', ''this scales'', ''matches the spec''). Strongest on high-stakes surfaces (production deploys, security-sensitive logic, data migrations, irreversible operations) and when the user asks to sanity-check, red-team, double-check, or get a second opinion on a decision.
Also in 13 projects that use this
luischanciSkillinterview-me
Interactive interview to formalize a research idea into a structured specification with hypotheses and empirical strategy.
Also in 12 projects that use this
OpenAISkillfinishing-a-development-branch
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work
Also in 3 projects that use this
OpenAISkillusing-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
Also in 3 projects that use this
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 3 projects that use this
- +4 more from openai
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- addyosmani/agent-skills★ 101ksame name
- shashankswe2020-ux/whoop-mcp★ 165same name
- drvoss/everything-copilot-cli★ 47same name
- az9713/addyosmani-agent-skills★ 38same name
- vinvcn/addyosmani-agent-skills-zh★ 38same name
- pimenov/codex-first-skills-pack★ 25same name
- sampleXbro/agentsmesh★ 25same name
- ishandutta2007/Awesome-Agent-Skills★ 21same name
- HiAi-gg/hiai-opencode★ 18same name
- borhen68/SkillEngine★ 17same name
24 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- ad-creativeSkill
- addyosmani-agent-skillsSkill
- api-and-interface-designSkill
- brandkitSkill
- browser-testing-with-devtoolsSkill
- chef-assistantSkill
- ci-cd-and-automationSkill
- cloud-run-basicsSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- debugging-and-error-recoverySkill
- design-taste-frontendSkill
- design-taste-frontend-v1Skill
- documentation-and-adrsSkill
- frontend-ui-engineeringSkill
- full-output-enforcementSkill
- gemini-apiSkill
- git-workflow-and-versioningSkill
- googlecloudplatform-knowledge-catalogSkill
- google-cloud-recipe-authSkill
- google-cloud-recipe-networking-observabilitySkill
- google-cloud-recipe-onboardingSkill
- google-cloud-waf-cost-optimizationSkill
- google-cloud-waf-reliabilitySkill
- google-cloud-waf-securitySkill
- gpt-tasteSkill
- high-end-visual-designSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- incremental-implementationSkill
- industrial-brutalist-uiSkill
- marketing-ideasSkill
- minimalist-uiSkill
- nvidia-skillspectorSkill
- observability-and-instrumentationSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- pricing-strategySkill
- programmatic-seoSkill
- redesign-existing-projectsSkill
- security-and-hardeningSkill
- seo-auditSkill
- shipping-and-launchSkill
- social-contentSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- stitch-design-tasteSkill
- test-driven-developmentSkill
- using-agent-skillsSkill
- videoSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 1 is common, 15 are distinctive, and 4 are very specific to this project.
1
Common
Most of the 32 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Always be explicit about which type you are doing.
- Distinctive: line 34
Before removing anything, document:
- Distinctive: line 38
When removal will happen (for compulsory deprecation)
- Distinctive: line 97
Before removing the deprecated thing:
- Distinctive: line 100
Verify no callers remain: the grep should return nothing
- Distinctive: line 101
Remove the deprecated code
- Distinctive: line 105
When removing deprecated code:
- Distinctive: line 106
Delete the entire file or function — don't leave it commented out
- Distinctive: line 107
Remove associated tests for the removed code
- Distinctive: line 108
Update any documentation that referenced the removed thing
- Distinctive: line 109
Update the CHANGELOG or ADR
- Distinctive: line 138
When renaming or removing a secret in GCP Secret Manager:
- Very specific: line 140
Add the new secret: gcloud secrets create NEW_SECRET_NAME
- Very specific: line 141
Update cloudbuild.yaml to inject both old and new: test that it works with new
- Distinctive: line 142
Update all code to use the new name
- Distinctive: line 143
Verify no code references the old name
- Very specific: line 144
Remove old secret from cloudbuild.yaml
- Very specific: line 145
Delete the old secret: gcloud secrets delete OLD_SECRET_NAME
- Distinctive: line 147
Never delete a secret before confirming no live Cloud Run revision references it.
- Common: line 167
After completing a deprecation or migration:
“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deprecation and Migration
Overview
Code is a liability, not an asset. Every line maintained is a line that can break. Deprecation is the practice of systematically retiring code, APIs, or features that are no longer earning their maintenance cost. Do it deliberately, not by abandonment.
When to Use
- Removing an old API endpoint that has been replaced
- Migrating from one library or pattern to another
- Sunsetting a feature that is no longer used or supported
- Cleaning up dead code identified during a refactor
The Deprecation Mindset
Compulsory vs. Advisory Deprecation:
| Type | Meaning | Example |
| Compulsory | Will be removed on a specific date — users must migrate | Old /v1/skills endpoint being replaced by /v2/skills |
| Advisory | Discouraged but not being removed yet | A config option that has a better alternative |
Always be explicit about which type you are doing.
The Deprecation Process
Step 1: Document Before Removing
Before removing anything, document:
- What is being deprecated
- Why (the reason, not just "it's old")
- What the replacement is
- When removal will happen (for compulsory deprecation)
# api/app/routes/skills_v1.py
import warnings
@router.get("/v1/skills/{repo}")
async def get_skill_v1(repo: str):
"""
DEPRECATED: Use /v2/skills/{repo} instead.
This endpoint will be removed on 2026-09-01.
Migration guide: docs/migration/v1-to-v2.md
"""
warnings.warn(
"GET /v1/skills is deprecated. Use /v2/skills. Removal: 2026-09-01.",
DeprecationWarning,
stacklevel=2,
)
# Delegate to v2 during transition period
return await get_skill_v2(repo)Step 2: Add Deprecation Signals
Make deprecation visible to consumers:
For HTTP APIs:
# Add Deprecation and Sunset headers per RFC 8594
response.headers["Deprecation"] = "true"
response.headers["Sunset"] = "Tue, 01 Sep 2026 00:00:00 GMT"
response.headers["Link"] = '</v2/skills>; rel="successor-version"'For Python functions:
import warnings
def generate_skill_v1(repo: str) -> str:
warnings.warn(
"generate_skill_v1() is deprecated. Use generate_skill() instead.",
DeprecationWarning,
stacklevel=2,
)
return generate_skill(repo)For TypeScript/React:
/** @deprecated Use SkillExportV2 instead. Will be removed in v2.0. */
export function SkillExport({ repo }: Props) {
console.warn("SkillExport is deprecated. Use SkillExportV2.");
return <SkillExportV2 repo={repo} />;
}Step 3: Migrate Callers First
Before removing the deprecated thing:
- Find all callers:
grep -r "generate_skill_v1" api/ web/ - Migrate each one to the replacement
- Verify no callers remain: the grep should return nothing
- Remove the deprecated code
Step 4: Remove Clean
When removing deprecated code:
- Delete the entire file or function — don't leave it commented out
- Remove associated tests for the removed code
- Update any documentation that referenced the removed thing
- Update the CHANGELOG or ADR
Step 5: Remove Dead Code
Dead code is worse than no code — it confuses future engineers and agents:
# BAD: Commented-out code left "just in case"
# def old_generate_skill(repo):
# # This was the old way, keeping for reference
# ...
# GOOD: Delete it. Git history is the reference.Finding dead code:
# Python: find unreferenced functions
grep -r "def generate_skill_v1" api/ | wc -l # should be 1 (the definition)
grep -r "generate_skill_v1" api/ | grep -v "def " # should be 0 callers
# TypeScript: find unused exports
npx ts-prune --project web/tsconfig.jsonGitScape-Specific Migration Patterns
Migrating a Cloud Run Environment Variable
When renaming or removing a secret in GCP Secret Manager:
- Add the new secret:
gcloud secrets create NEW_SECRET_NAME - Update
cloudbuild.yamlto inject both old and new: test that it works with new - Update all code to use the new name
- Verify no code references the old name
- Remove old secret from
cloudbuild.yaml - Delete the old secret:
gcloud secrets delete OLD_SECRET_NAME
Never delete a secret before confirming no live Cloud Run revision references it.
Common Rationalizations
| Rationalization | Reality |
| "We might need it later" | Git history exists. Dead code is not a backup strategy. |
| "Let's just leave the old endpoint — it's not hurting anyone" | It is. It's surface area to maintain, test, and secure. |
| "We'll migrate it when we have more time" | Migrations get harder over time, not easier. Callers accumulate. |
| "The deprecated code still works" | Working is not the bar. Maintained, understood, and secure is the bar. |
Red Flags
- Commented-out code with "keeping for reference"
- Functions with
_old,_v1, or_deprecatedin the name that are still called - Deprecated APIs with no removal date
- Code that can't be removed because "we don't know who uses it"
Verification
After completing a deprecation or migration:
- Zero callers of the removed API/function (verified via grep)
- No commented-out old code left behind
- Deprecation notices were in place for the required notice period (if applicable)
- Documentation updated to reference the new approach
- Associated tests for removed code are deleted
- CHANGELOG or ADR records the removal
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

