用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill add-deferred-debt命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-deferred-debt |
| description | Add deferred technical debt items identified during PR review |
Purpose: Track technical debt items identified during PR review that were deferred (not fixed in the current PR).
When to Use: During or after PR review when you identify issues that should be tracked but won't be fixed immediately.
This skill creates a tracked debt item from PR review findings. Items are tagged with the PR number for traceability.
Output Location: docs/technical-debt/MASTER_DEBT.jsonl
Use during PR review when:
Do NOT defer if:
Collect from the user or current context:
| Field | Required | Description | Example |
|---|---|---|---|
pr_number | Yes | PR number | 325 |
file | Yes | File path | components/auth/login.tsx |
line | Yes | Line number | 145 |
title | Yes | Short description | Missing input validation |
severity | Yes | S1, S2, or S3 (NOT S0) | S2 |
category | Yes | security, performance, etc. | security |
reason | Yes | Why deferred (out of scope, etc.) | Pre-existing issue |
⚠️ S0 items cannot be deferred!
If this is truly critical, it must be fixed before PR merges.
Options:
[1] Downgrade to S1 and defer
[2] Block PR until fixed
[3] Cancel deferral
📋 Deferred Debt Item Preview
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PR: #325
ID: DEBT-XXXX (auto-assigned)
Source: PR-325-001
File: components/auth/login.tsx:145
Severity: S2 (Medium)
Category: security
Title: Missing input validation
Reason: Pre-existing issue, out of scope for this PR
Confirm? [Y/n]
node scripts/debt/intake-pr-deferred.js \
--pr 325 \
--file "components/auth/login.tsx" \
--line 145 \
--title "Missing input validation" \
--severity S2 \
--category security \
--reason "Pre-existing issue, out of scope for this PR"
Script behavior:
PR-{number}-{sequence}node scripts/debt/generate-views.js
✅ Deferred Debt Item Added
ID: DEBT-0892
PR: #325
File: components/auth/login.tsx:145
Severity: S2
Status: NEW (from PR review)
📄 Updated files:
- docs/technical-debt/MASTER_DEBT.jsonl
- docs/technical-debt/views/verification-queue.md
💡 Reminder:
- Add to PR description: "Defers: DEBT-0892"
- Item will appear in next verification batch
For multiple items in one PR:
# Run for each item
node scripts/debt/intake-pr-deferred.js --pr 325 --file "file1.tsx" ...
node scripts/debt/intake-pr-deferred.js --pr 325 --file "file2.tsx" ...
# Or use batch mode (future enhancement)
node scripts/debt/intake-pr-deferred.js --pr 325 --batch items.json
After adding deferred items, update the PR description:
## Technical Debt
Defers: DEBT-0892, DEBT-0893
**Reason:** Pre-existing issues identified during review, out of scope for this
PR. Tracked for future cleanup.
The pr-review skill includes a mandatory section for deferred items:
## Deferred Items (Mandatory Section)
If ANY items are deferred during review:
1. List each with: file, line, severity, description
2. Run `add-deferred-debt` skill for each item
3. Verify items appear in MASTER_DEBT.jsonl
**No PR review is complete until deferred items are tracked.**
sync-sonarcloud-debt - Import from SonarCloudadd-manual-debt - Add items manuallyverify-technical-debt - Verify items in queuepr-review - Full PR review workflow