跳到正文
cccskills
免费在 GitHub 公开

maintain-project-context

Clean, compact, and reconcile durable project context without changing established meaning. Always use this skill whenever a request cleans, audits, or checks consistency across two or more durable context sources, even when they are called product docs, glossary, decisions, specs, or agent instructions instead of PRODUCT.md, GLOSSARY.md, docs/decisions, docs/specs, AGENTS.md, or CLAUDE.md. Also use for confirmed shipped-spec retirement. Do not use to define new product intent, record one newly settled term or decision, look up context, shape a feature, implement work, or revise an active spec's behavior against work that has shipped, which belongs to `babysit-specs`.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template星标 77(GitHub 77 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(9)

  • SKILL.md6.1 KB
  • agents/openai.yaml262 B
  • evals/evals.json9.8 KB
  • evals/fixtures/conflicting-code/PRODUCT.md777 B
  • evals/fixtures/conflicting-code/src/team-invitations.md296 B
  • evals/fixtures/settled-audience/docs/decisions/product-audience.md380 B
  • evals/fixtures/settled-audience/docs/decisions/README.md134 B
  • evals/fixtures/settled-audience/PRODUCT.md948 B
  • evals/trigger-evals.json2.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Maintain Project Context

Run a deliberate hygiene pass across the durable context that future work will reuse. Make the current meaning easier to retrieve without becoming the decision-maker for any artifact.

Preserve authority

  • Apply a meaning only when the user confirmed it, explicitly delegated that class of decision, or an authoritative project source already states it.
  • Use shipped code to spot stale documentation, not to prove intent. Do not change product code during this pass.
  • Leave sources unchanged when their intended meaning conflicts or shipment is unclear. Ask the exact question required to continue; never choose by file date, implementation prevalence, labels such as accepted, or silence.
  • Preserve a current fact or decision only in the artifact that owns it. Do not build a parallel summary or copy the same authority across files.

Inspect the durable surfaces

Inspect only the surfaces that exist or are required by the cleanup:

  • root PRODUCT.md for the app-level product premise;
  • root GLOSSARY.md for current project terms;
  • docs/decisions/README.md and the relevant subject contracts;
  • docs/specs/<slug>/ folders whose work may have shipped;
  • always-loaded repository guidance such as AGENTS.md and CLAUDE.md.

Do nothing merely because an optional file is absent. This is a periodic cross-artifact pass, not the incremental capture of a single newly settled term, decision, or follow-up.

Maintain product context

When PRODUCT.md exists, compare its claims with explicit current product decisions and other authoritative context. Remove duplicated or obsolete wording and apply already-settled product meaning while preserving still-current content.

Keep PRODUCT.md product-only: app definition, users and situations, problem and alternatives, promised change, core loop, app-wide capabilities and boundaries, experience principles, success signals, assumptions, and unknowns. Do not move stack, architecture, repository mechanics, screen requirements, work-unit scope, or acceptance criteria into it.

When a proposed edit would choose a new audience, problem, promise, core loop, product boundary, or other product intent, leave the file unchanged and ask the user to settle that meaning. Use define-product when it is available and the user wants to reopen the product premise; otherwise ask the same exact product question directly.

Maintain decision contracts

List docs/decisions/ and read its index when it exists. Check for files missing from the index, then compare relevant subjects with current context and remaining specs.

Keep one editable decision file per subject. Use Git for history instead of keeping old decision files in the active folder. When several files clearly agree on one decision, merge them under the clearest stable subject name. Update every inbound link before deleting redundant files.

Every decision contract created or edited in this pass needs a subject title and these required sections:

  • Decisions: every current rule;
  • Why: the minimum reason needed to apply the rule without repeating the same debate.

Add these sections only when they carry current value:

  • Boundaries: limits or exceptions;
  • Reconsider when: a specific condition that should reopen the decision;
  • Still-rejected alternatives: a future agent might retry a rejected path;
  • Evidence worth preserving: a measurement or experiment would be costly to reproduce.

Remove status fields, supersession chains, adoption or update dates, pull-request order, and old implementation notes. Keep a date when it sets a current rule or tells future work when to reconsider.

Before removing other content, ask whether its absence could make a capable future agent repeat the same proposal, investigation, experiment, or failed approach under the same conditions. If so, keep the shortest explanation that prevents repetition. Remove duplicates and alternatives that cannot reasonably recur.

Maintain related files

  • In docs/decisions/README.md, keep exactly one entry per decision file: - [subject](subject.md) — Read when .... Make every link work. The routing phrase says when to open the file, not what it decided.
  • In GLOSSARY.md, keep only terms the project currently uses and rewrite a definition only when the project's language has already changed.
  • For each docs/specs/<slug>/ confirmed as shipped, first preserve every qualifying reusable decision in its owning contract, then delete the folder. If shipment is unclear, leave it and ask. In active specs, update only links and terms already confirmed elsewhere.
  • In always-loaded instructions, keep repository working rules and a route to the decision index. Remove copied decision or product content without changing unrelated instructions.

Create, rename, or rebuild decision contracts and their index when the cleanup requires it. Do not merge unrelated subjects or remove necessary instructions to hit a size target. Report an index or always-loaded file that remains hard to navigate and explain why.

Finish

Finish when every safely resolvable subject has one owner and one current representation, confirmed shipped specs are retired, optional current surfaces contain no known stale duplication, and ambiguous meaning remains preserved.

Report what changed, what was deleted, what was intentionally left unchanged, and the exact question needed for every unresolved conflict or unclear shipment.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Audit and establish current agent context for the technologies that define a project's stack. Use when setting up a project for agent work, after selecting or adding a framework, library, developer tool, or hosted service, or when entering an existing project whose agent context has not been audited.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

Revise active `docs/specs/SLUG/` specs so they match what has shipped since they were written. Use when earlier work has landed and queued specs may now rest on stale assumptions, acceptance criteria, constraints, terms, or prototypes, or when implementation reports a spec as stale before changing source. Takes one or more spec folders, or every folder under `docs/specs/` when none is named. Do not use to shape a new spec from a problem and direction, which belongs to `shape-idea`, or to reconcile durable project context and retire shipped folders, which belongs to `maintain-project-context`.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

Build a complete dummy-data HTML prototype or a temporary comparison of up to three alternatives for a specific user situation. Use to settle a screen-based product before implementation or resolve a visual or interaction decision during shaping or prototype review. Do not use for production implementation or CLI, terminal, or voice interfaces.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

commit

免费

Create Git commits for the current request's in-scope changes as logical Conventional Commits. Always use this skill for an actual Git commit operation, including requests to commit or amend changes, save work in repository history, stage and record selected files, or group staged or unstaged changes into commits. Use it even when the request describes recording changes without saying "commit"; it performs the commit rather than only suggesting a message, and it does not push.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

Interview the user to define or revise the app's overall product direction, then preserve the confirmed meaning in root PRODUCT.md. Always use for a new app direction or any app-wide change to users, usage situations, problem, promised change, core loop, durable boundaries, experience principles, success signals, assumptions, or unknowns, even when PRODUCT.md is not named. Start from an existing definition or a rough app direction. Do not use for blank-page idea discovery, architecture, or shaping or specifying one feature or work unit.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

Render an explanation as a diagram, comparison, trace with real values, or annotated code. Use when the user asks to have a concept, decision, flow, or code explained, or says they do not follow.

中文简介正在准备中。当前显示原文说明。

toy-crane/claude-code-playbook-template772026年10月21日 更新

查看 toy-crane 的全部技能

报告此技能的问题