一键导入
docs-after-change
Mandatory after any code change. Ensures docstrings, README, and architecture/docs stay consistent with the new behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Mandatory after any code change. Ensures docstrings, README, and architecture/docs stay consistent with the new behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guide non-technical contributors through making safe code changes to CityCatalyst. Use when someone without coding experience wants to update text, translations, colors, copy, or small UI details, and needs the agent to handle git, verification, and PR creation for them.
Create or update pull requests with repository-derived context and concise title/body standards. Use when creating, updating, automating, drafting, or polishing PRs, or preparing GitHub PR tool payloads.
Review pull requests for high-impact issues only. Use when the user asks to review a PR, especially requests like "do a review of PR <id>", "review PR <id>", or "PR review". Evaluate security, AGENTS.md alignment, repository structure, reuse over reimplementation, complexity, and regression risk. Return only actionable comments worth changing.
Run a read-only Kubernetes health audit against an explicit readonly cluster context such as `dev-cluster-readonly` or `prod-cluster-readonly`. Use when the user wants an automated cluster/pod health check, diagnosis of failing workloads, or a report of likely causes without making any write changes.
Answer a single Kubernetes question using readonly investigation and evidence-first output.
Generate structured Linear tickets (stories, tasks, bugs, spikes) with AI-enriched code references and acceptance criteria from a brief description. Use when the product team asks to create a ticket, write a story, draft a task, report a bug, or plan a spike for CityCatalyst.
| name | docs-after-change |
| description | Mandatory after any code change. Ensures docstrings, README, and architecture/docs stay consistent with the new behavior. |
This skill is mandatory after any code change (including refactors). It is optimized to keep repository documentation accurate without doing unnecessary full-repo audits.
Keep documentation and developer UX up-to-date by validating and updating:
architecture.md) when flow/structure changes.py).yml/.yaml, .toml, .json, .env.example) that affect runtime behavior (models, providers, pipelines)app/main.py, app/scripts/*, python -m ...)pyproject.toml, *.yml, .env.example, provider/model selection)For any file intended to be executed as a script or documented as an entrypoint:
python -m ...main()).argparse behavior.If the file is not runnable but is a “public” module (commonly imported or referenced in docs), ensure key functions/classes have docstrings where they clarify non-obvious behavior or invariants.
Additionally (general rule): ensure every function and method you touched has a docstring.
Update README.md if any of these changed:
pip, uv, requirements.txt vs pyproject.toml)python -m ...) and their flagsChecklist:
.env.example..env.example and is referenced in README.md.Update architecture.md (and any other architecture documents) if you changed:
Rules of thumb:
In the final response, include:
/repo-doc-audit for that).