一键导入
pd-maintain-claude
Audits and fixes the `.claude/` directory to ensure internal consistency, correct references, and adherence to project conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audits and fixes the `.claude/` directory to ensure internal consistency, correct references, and adherence to project conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | pd-maintain-claude |
| description | Audits and fixes the `.claude/` directory to ensure internal consistency, correct references, and adherence to project conventions. |
Audit and fix the .claude/ directory to ensure internal consistency, correct references, and adherence to project conventions. Run this skill proactively when making changes to .claude/ files, or when the Developer asks to lint or maintain the agent configuration.
Work through each check below. Collect all findings first, then present a summary to the Developer before making fixes.
CLAUDE.md referencesCLAUDE.md uses two kinds of references:
@FILENAME includes: These are functional — the Agent automatically loads the referenced file's content. Confirm each target file exists relative to .claude/..claude/.Also check for:
.claude/ that exist but are not referenced in CLAUDE.md where they should be (rules in the rules list, skills in the skills list, @-included docs).Scan all .claude/**/*.md files for paths that reference other files (e.g. rules/TESTING.md, docs/CONTRIBUTING.md, .github/pull_request_template.md). These are informational references for readability, not functional includes, but they should still point to real files.
rules/ or skills/, resolve relative to .claude/.docs/, .github/, or other project directories, resolve relative to the project root.Every file in rules/**/*.md must have YAML frontmatter with a paths field. This field is functional — the Agent uses it to determine when to automatically apply the rule.
---
paths:
- 'glob/pattern'
---
paths key."**/*.py").Every skill directory in skills/ must contain a SKILL.md file.
SKILL.md.SKILL.md that is empty or has no meaningful content.name and description fields. Flag any missing these fields or with empty values.UPPER_SNAKE_CASE.md naming.lower_snake_case naming.SKILL.md (not SKILL.MD or other variants).All .claude/ files should use consistent terminology for the three roles:
Flag any inconsistent usage and suggest replacements.
Following the conventions in rules/MARKDOWN.md:
# syntax, not underline syntax.# heading describing their purpose.Scan docs/**/*.md files for internal links and path references to other docs or project files. Confirm targets exist.
Present findings as a checklist grouped by category. For each issue, note:
Ask the Developer which fixes to apply before making changes.
Diagnose and fix a spend plan PDF that isn't parsing correctly. Takes a filename or URL and optional free-form agency/bureau hint, then diagnoses what's failing, explains the proposed fix, and applies it across load-file.ts, spend-plan-agency-match.ts, and the test file.
Use when doing infrastructure work.
Manages project dependencies, ensuring all required packages are installed and up to date.
Use when updating or checking GitHub Action versions, when adding a new action to a workflow file, or when the Developer asks about action versions or SHA pins.
On-demand security review of code changes. Use when asked to "security check", "security review", "find vulnerabilities", "check for security issues", "audit security", or "OWASP review". Diff-aware, covers OWASP Top 10, supply chain, infrastructure, and agentic AI security with confidence-based reporting.
Generates a summary of a pull request based on the PR description and the code changes.