本文へ移動
cccskills
無料GitHub で公開

standardise-repo-patterns

Compare recurring implementation patterns, choose the best existing approach, teach it in the owning skill, and enforce reliable distinctions through existing lint tooling. Use when asked to generalise inconsistent code or turn a repeated anti-slop finding into a convention and fix its remaining occurrences.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md3.5 KB
  • references/boundary-types.md2.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Standardise a recurring pattern

Choose one bounded family of implementations, make its preferred form explicit, and fix the inconsistent cases. Frequency helps locate the work; correctness and the actual boundary decide which form should survive. A majority implementation may still be the defective one.

Establish recurrence

Inspect the intended source revision and its existing skills, helpers, types and lint rules. Search all callers of the selected mechanism. Count independent implementations separately from call sites, tests, copied code and strings containing example code. Use the installed parser when syntax matters. Record paths, counts and the denominator; a search hit is a lead until read.

Compare representative implementations and every proposed exception: their producer, input guarantee, consumer and failure behaviour. A 70/30 split supports consolidation only when the two groups implement the same contract. Preserve differences caused by trust, lifecycle, platform or deliberate hostile testing. Read recorded runs only when the decision depends on run behaviour or the operator requests them; source recurrence does not prove a live defect.

Select and teach

Prefer the existing owner or platform primitive with the fewest concepts and sufficient checks. State the preferred pattern, why it applies, its nearest legitimate exception and where the implementation lives. Update the owning skill when one exists. Add a small specialist skill or reference only when it supplies a distinct decision; keep changing counts in the task report.

Do not turn every candidate into a new rule. A one-off defect needs its own correction. A semantic distinction that the linter cannot establish belongs in review guidance.

For Anabasis's unknown-boundary pattern, read boundary-types.md.

Enforce and migrate

Use the repository's existing lint rule language and test harness. Check built-in rules and installed plugins first, then extend the current owner. Add a small AST rule only for a distinction that can be recognised reliably. A separate DSL or rules engine is unnecessary. Name syntactic and cross-file limits; do not present a lint heuristic as validation proof.

Prove a missed case before changing enforcement. Test both the forbidden form and its closest valid neighbour through the real linter. Include binding or nesting cases when they affect the decision, and make diagnostics point towards the preferred implementation. Avoid autofixes when choosing the replacement requires tracing the producer.

Run the new check across its intended scope before cleanup and inspect every finding. Fix supported occurrences using the chosen pattern, preserving runtime checks and evidence. If a finding represents a legitimate different contract, refine enforcement and pin that exception; do not add blanket exclusions, casts or dummy guards just to achieve a green lint result.

Rerun the owning tests and lint after migration, then the repository's delivery gate. Report the observed split, chosen form, violations before and after, and any remaining limits. Stop when this family is closed; a new census requires its own task scope.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when deciding which Anabasis stage owns a change, when carrying one bounded build/measure slice from the user's prompt to evidence, or when deciding what may enter a run: the exact one-line prompt, context files, public catalogues, research and solve-side public data. Maps the product loop, the input contract, the authoring sessions, the adoption gates, the four owners, and validate-or-reopen behaviour. Not a long-running campaign controller.

日本語の概要は準備中です。原文の説明を表示しています。

s-smits/anabasis622026年10月13日 更新

Use after an Anabasis run, comparison, or system change and before claiming improvement. Attributes movement to one owner, reports identities and censored denominators, separates deterministic proof from model judgement, keeps measurement validity apart from observed exploitation, and states what remains unrun or provisional.

日本語の概要は準備中です。原文の説明を表示しています。

s-smits/anabasis622026年10月13日 更新

Use for 1-7 independent read-only sessions investigating one bounded Anabasis failure, diff, or design question before a fix. Defines non-leading prompts, evidence packets, symmetric fault hypotheses, self-falsification, source adjudication, and concise synthesis. Do not use for whole-run coverage at any session count; use whole-run-investigation instead.

日本語の概要は準備中です。原文の説明を表示しています。

s-smits/anabasis622026年10月13日 更新

Get told the moment a live Builder session is blocked (five refused submits in a row, a repeated findings set, twelve checks without acceptance, two environment previews in a row, two hours since a submit or rehearsal last returned) and fix the owner iteratively: read, fix on the owning PR, then keep the run or kill it and relaunch on the upgraded system, and rearm. Use while a paid run is live and the operator wants blocking caught and repaired, not only reported.

日本語の概要は準備中です。原文の説明を表示しています。

s-smits/anabasis622026年10月13日 更新

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

日本語の概要は準備中です。原文の説明を表示しています。

s-smits/anabasis622026年10月13日 更新

Launch, start, monitor, and collect independent Codex subagents (gpt-6-luna at high, xhigh or max; gpt-6.1-sol for small review batches) for bounded parallel work, from Codex or from Claude Code, including requests supplied as a Markdown file of session prompts. This skill owns Codex subagent transport even when another investigation or review skill defines the questions. Use whenever the user asks for Luna or Sol agents, a swarm, many sessions, a concurrency test, a particular reasoning effort, a Codex subagent from Claude Code, or later collection of reports. Distinguish launch-only requests from requests to wait, collect, or synthesise. Route high and xhigh through the direct launcher; for 16 or more sessions, also invoke the direct launcher instead of native spawn_agent.

日本語の概要は準備中です。原文の説明を表示しています。

s-smits/anabasis622026年10月13日 更新

s-smits のスキルをすべて見る

このスキルの問題を報告する