develop
Skill16 starsChanged 57 days agoApache-2.0View on GitHub
Project conventions and recurring gotchas for implementer agents working on chipping-orchestrator. Use before committing any change in orchestrator/, tests/, or docs/.
22 other projects use a version of this.
Adopted by
Most recently taken up by
- thekinv21/NotificationServicetheir own version, first seen Oct 3, 2026
- thekinv21/RBAC_Authenticationtheir own version, first seen Oct 1, 2026
- Blakeem/aipromptguide-workflowstheir own version, first seen Sep 30, 2026
- martinappberg/chimaeratheir own version, first seen Sep 28, 2026
- satoh-y-0323/claude-code-conductortheir own version, first seen Sep 28, 2026
- Nagacash/naga-codex-skillstheir own version, first seen Sep 25, 2026
Used with
Projects with it also use scope, document and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
vltingSkillscope
Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.
Also in 6 projects that use this
nicolasestremSkilldocument
Create focused documentation for specific components or features
Also in 5 projects that use this
MicrosoftSkillsync
Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.
Also in 6 projects that use this
kt057Skillcheck
lint, typecheck, test を一括実行して結果をサマリーする
Also in 5 projects that use this
jdonohooSkillarchitect
Architect Vern - Systems design, scalable architecture, production-grade thinking. The blueprints before the build.
Also in 9 projects that use this
Microsoft AzureSkilltest
Also in 6 projects that use this
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- jsmastery-pro/skills★ 1.4ksame name
- javiarmesto/ALDC-AL-Development-Collection★ 108same name
- alexiolan/craft-skills★ 17same name
- axiomantic/spellbook★ 10same name
- flurdy/agent-skills★ 9same name
- jsmastery-pro/pilot★ 8same name
- martinappberg/chimaera★ 4same name
- BostonOrange/claude-code-framework★ 2same name
- nicolai-bernsen/backlogd★ 2same name
- thekinv21/RBAC_Authentication★ 2same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 12 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Every source file (*.py, *.sh, pyproject.toml) places this pair immediately after any shebang, or at the beginning of the file when there …
- Distinctive: line 46
Before committing, run each of these and fix what they report:
- Very specific: line 72
Never split one module's names across several from ...
- Distinctive: line 117
When you move a helper to a new module, move the test's patch target to that owner with it.
- Very specific: line 135
Prefer extending the in-memory fakes in tests/support/github/ (reached through the tests/support/fakes.py bridge) over mocking PyGithub …
- Distinctive: line 145
Keep a seam patch where a collaborator is deliberately stubbed and its effect cannot otherwise be observed — a network or database read, an …
- Distinctive: line 148
Call counts and ordering stay where the count or the order is itself the contract: a forbidden push, a duplicate child or PR, repeated …
- Distinctive: line 153
Before finalizing tests, do a redundancy pass:
- Very specific: line 155
Run one scenario once and assert its outcomes together.
- Distinctive: line 161
Prefer one focused helper/unit test that covers sibling branches over multiple tests with repeated setup.
- Distinctive: line 162
Keep end-to-end tests only when they exercise an integration boundary that helper tests cannot cover.
- Distinctive: line 163
Ensure assertions observe the behavior being fixed.
- Distinctive: line 166
Remove incidental low-level assertions when existing tests already cover that behavior.
- Distinctive: line 170
Write every comment against the current state of the code, as if it had always been this way:
- Distinctive: line 172
Prefer stating why the code below exists — the invariant it protects, the non-local consumer it serves, the failure it prevents — over …
- Very specific: line 180
No diff-relative wording: "previously", "the old X", "instead of a set", "no longer", "now sized to".
- Distinctive: line 187
When you move, rename, or delete a symbol or module — a handler, helper, constant, or whole owner — grep for its name across these files …
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Developer skill — chipping-orchestrator
Environment and commands
The repo targets Python 3.12+ and installs from the lockfile with uv:
uv sync --locked # create .venv/ with runtime + dev deps
uv run ruff check orchestrator tests .github/scripts/docs_site.py # run Ruff
uv run flake8 orchestrator tests .github/scripts/docs_site.py --select=WPS # run wemake-python-styleguide
uv run pytest tests # run the test suite
uv run python -m orchestrator --once # one polling tick then exit
uv run python -m orchestrator --log-level DEBUG # continuous polling with debug logsLicense headers
Every source file (*.py, *.sh, pyproject.toml) places this pair immediately after any shebang, or at the
beginning of the file when there is no shebang:
# Copyright 2026 Geser Dugarov
# SPDX-License-Identifier: Apache-2.0Commits
- Conventional Commits:
<type>: <subject>with one offeat,fix,chore,docs,refactor,test. - Subject line only — no body, no
Co-Authored-Bytrailer, no extended description. One-mflag. - Imperative mood, short and specific. Match the style in
git log --oneline -20. - Descriptive subject only — write no numeric suffix. The trailing
(#N)on the subjects in that history is publication metadata the orchestrator appended when it published the change, not part of the style to match: never copy one, and never end a subject with the number of the issue being implemented. The orchestrator supplies the pull request reference itself, and issue linkage stays in the PR body.
Pre-push checklist
Before committing, run each of these and fix what they report:
.venv/bin/python -m ruff check orchestrator tests .github/scripts/docs_site.py— the lint contract is Ruff's own default rule set plusE501.[tool.ruff.lint]inpyproject.tomldeclares noselect, so the run enforces whatever theruffresolved inuv.lockships as its defaults; do not add one back, and do not answer a new diagnostic by narrowing the selection. Re-resolving that lock can bring rules with it — fix what they report, in the same commit as the bump. There is no tree-wide waiver either: the only suppressions are the exact-path entries under[tool.ruff.lint.per-file-ignores]and inline# noqa: <CODE> - <reason>directives, each naming the rule it covers and why, andtests/repository/test_noqa_directives.pyfails on a bare# noqaor a file-wide# ruff: noqa. Recurring CI breakers:- F401 (unused import): if the name is meant to be a re-export from a package facade that binds its
surface with imports (
orchestrator/agents/,github/,scheduler/,observability/usage/), alias it with... as <name>so ruff treats it as an explicit re-export instead of dead code. A name the initializer lists in__all__— howorchestrator/workflow/publishes its label and guard surface — is already exempt. Outside an initializer that alias also trips PLC0414, so the module has to be one of the exact paths waived under[tool.ruff.lint.per-file-ignores]inpyproject.toml; alias only a name the module never reads itself, and add the path in the same commit.tests/repository/test_reexport_aliases.pyfails on anything else. - F541 (f-string without placeholders): use a plain string.
- F841 (unused local).
- E402 (module-level import not at top of file).
- BLE001 (blind
except Exception): only a handler that must catch blind gets a# noqa: BLE001 - <reason>naming what the catch protects; anything narrower catches the exception it means. - The defaults also carry the modernization and simplification families — UP, B, SIM, C4, RET, RUF — so a diagnostic from one of those is a rewrite, not a waiver.
- F401 (unused import): if the name is meant to be a re-export from a package facade that binds its
surface with imports (
uv run ruff check orchestrator tests .github/scripts/docs_site.py --select=I001 --fix—I001is in the run above, so this is just the fixer for it;tests/repository/test_import_sorting.pyfails on a block left unsorted too. Never split one module's names across severalfrom ... importstatements to duck WPS235 — the sorter merges every statement reading from the same module back into one.uv run flake8 orchestrator tests .github/scripts/docs_site.py --select=WPS— all WPS naming, complexity, consistency, bug-prevention, refactoring, and OOP rules must pass.git diff --check— catches whitespace errors in unstaged changes.git diff --cached --check— catches whitespace errors in staged changes.git diff --check origin/main...HEAD— catches whitespace errors in committed branch changes..venv/bin/python -m pytest— full suite must pass. Do not assume any "known" failure is acceptable; if a test fails on your branch, first reproduce it onorigin/mainat the same SHA you branched from, and only then call it out in the PR as a baseline failure with the reproduction steps. Otherwise fix it.
Workflow owners and stage modules
Most package initializers are markers. The deliberate public APIs retain their explicit __all__ surfaces and
exact-path WPS410/WPS412 exclusions. orchestrator.workflow publishes the two label vocabularies, the transition
guard, its predicate and exception, and the lazy per-repo tick entry point. Labels live on workflow/state.py,
label parsing on workflow/label_reading.py, the graph on workflow/transitions.py, and write guards on
workflow/transition_guard.py.
- The workflow initializer imports no engine or stage. Its
tickshim resolvesworkflow/engine/tick.pyinside the call, so the GitHub and git layers can import labels and guards without an initialization cycle.tests/workflow/test_imports.pychecks that direction, andtests/repository/test_package_exports.pyholds the declared public surfaces and marker initializers. - Settings reloads and patches target
orchestrator.config, the same module object all callers retain.config.RepoSpecis the public alias ofconfig.models.RepoSpec; callers that need only the type may import its defining owner. Token resolution is defined onconfig.credentials. - Stage modules import the owner they borrow from at module scope —
from orchestrator.git.worktrees import paths as _worktree_paths,from orchestrator.workflow.engine import guards as _guards— and call through that alias. Never reintroduce a call-time hop through the package initializer. - Tests patch the owner.
tests/workflow/git_owners.pyrecords which git module defines each seam (GIT_SEAM_OWNERS,seam_patch) andtests/workflow/patch_context.pyinstalls every hermetic mock on that table plus the agent runner, raising rather than falling back when a name has no owner. - Stage-private helpers stay in the stage package that owns them. Shared helpers are read from their defining owner; copying or re-exporting one creates a second patch target that can drift from the running call.
- Each owner declares its own
log = logging.getLogger("orchestrator.workflow")with the channel spelled literally (workflow/transition_guard.pyownsorchestrator.state_machine). Operator filters select on those names, so never derive one from__name__;tests/workflow/test_imports.pywalks the package and checks it. - Preserve the public contract verbatim across a refactor: workflow labels, pinned-state JSON keys, comment marker text, watermark fields, event-emission shape. Live issues already carry these — a "harmless rename" is a migration, not a refactor.
Tests
- When you move a helper to a new module, move the test's patch target to that owner with it. There is no second site to patch instead: the module the call site names is the only one a mock intercepts.
- Tests mirror the runtime layout: a module under
orchestrator/<package>/is covered bytests/<package>/, and stage-handler tests live beside their owners undertests/workflow/stages/<stage>/. Put a new test in the module that already covers the behavior's owner; add a new module only when none does, and name it after the behavior it protects rather than after the symbol it calls. - Each stage package's tests are already split into focused modules — routing, the outcomes one tick can reach, the
parks, drift, live pause — with the fixtures they share in a
*_test_support.pybeside them. Follow the split that is there instead of growing one omnibus module, and put a stage's shared fixtures in its own support module rather than in a sibling stage's. - Each tests package carries its package-level guards (clean-process import, import-cycle / layering direction,
and public surface) in its own
test_imports.py. A test-economy pass never trims them: one fresh process per owner and per environment is the floor, since importing several owners in one interpreter hides a cycle behind an already populatedsys.modules. - Helpers that belong to no single stage get their own focused module under
tests/workflow/, andtests/workflow/fixtures.pyre-exports the ones a test spanning several of those leaves needs. Nothing lands at thetests/root: a helper shared across domains goes undertests/support/, and a test covering the repository's own files or the root package goes undertests/repository/. - Prefer extending the in-memory fakes in
tests/support/github/(reached through thetests/support/fakes.pybridge) over mocking PyGithub directly. New behavior should land with tests in the matching stage file. - Assert what a change does, not which helper ran. Drive a stage handler through the in-memory GitHub client —
or through a whole
tick()— and read back the workflow label,pinned_data, posted comments, the PR, and what the next tick does; drive a dashboard section against the recording page doubles beside it intests/observability/dashboard/and read back the panel order, the filters and timezone the page was drawn with, and the data on screen. A test that patches a helper in the package under test and assertscall_args, object identity, or the order two same-package helpers ran in breaks on every refactor and says nothing about behavior. - Keep a seam patch where a collaborator is deliberately stubbed and its effect cannot otherwise be observed — a network or database read, an agent run, a renderer reaching for an optional dependency — and patch it on the defining owner, as above.
- Call counts and ordering stay where the count or the order is itself the contract: a forbidden push, a
duplicate child or PR, repeated charging, an extra API read or pinned-state write, timeout cleanup,
write-before-publish ordering.
tests/github/test_issue_polling.pyasserting no per-issue detail GET is the model. Literal label, pinned-state key, comment marker, watermark, and event payload checks stay for the same reason — they are the compatibility contract, not implementation detail. - Before finalizing tests, do a redundancy pass:
- List each added/modified test and the distinct behavior it protects.
- Run one scenario once and assert its outcomes together. Where several methods share a
setUpand differ only in which outcome they inspect, fold them into one test that keeps every assertion and its diagnostic message. Keep distinct scenarios apart: different failure inputs, crash windows, security boundaries, and side effects each earn their own run. - Merge tests that differ only by input shape or branch case into
pytest.mark.parametrizecases or a small named loop, unless separate setup materially improves clarity. - Prefer one focused helper/unit test that covers sibling branches over multiple tests with repeated setup.
- Keep end-to-end tests only when they exercise an integration boundary that helper tests cannot cover.
- Ensure assertions observe the behavior being fixed. For resource-usage bugs (over-fetching, redundant API calls, retained state), add a direct assertion at the helper/producer level when final-result checks could pass for the wrong reason.
- Remove incidental low-level assertions when existing tests already cover that behavior.
Comments
Write every comment against the current state of the code, as if it had always been this way:
- Prefer stating why the code below exists — the invariant it protects, the non-local consumer it
serves, the failure it prevents — over describing what it does. If a comment paraphrases an
already-readable line (
# cap the page size at what we still needabovemin(remaining, page_size)) or the assert below it, delete it or replace it with the reason. - Exception: a plain-language summary of genuinely dense code (tricky offset math, a multi-step comprehension or iterator chain, subtle ordering constraints) is fine even though it "restates" the code. The test is whether the comment is faster to understand than the code below it, not whether it repeats it.
- No diff-relative wording: "previously", "the old X", "instead of a
set", "no longer", "now sized to". Those sentences address the reviewer and go stale the moment the PR merges — put the before/after story in the commit message or PR description instead. - Same rule for test docstrings: describe the behavior the test pins down, not the bug or implementation it replaced.
Documentation drift
When you move, rename, or delete a symbol or module — a handler, helper, constant, or whole owner — grep for its name across these files and update every inventory entry, prose pointer, and docstring it leaves stale in the same commit:
docs/architecture.mdand the focused pages underdocs/architecture/— the module-by-module inventory lives here and nowhere else, with one exception:docs/architecture/observability-modules.mdmapsobservability/andapps/at the package boundary, so a move, rename, or deletion inside those two trees updates the affected owner and package docstrings rather than a map entrydocs/state-machine.mdand the focused pages underdocs/state-machine/docs/workflow.mdand the focused pages underdocs/workflow/- the module docstrings at the top of the owners the symbol moved between, was renamed in, or was deleted from, and of the package initializers above them that describe where a name answers
AGENTS.md (and its CLAUDE.md symlink) is deliberately not on that list. It carries no module, owner, or test
inventory, so a routine move, rename, or deletion of a symbol or module must leave it alone. Update it only when
repository-wide agent instructions, safety rules, or documentation routing change.
Be precise about what a package does and does not publish — overstated claims like "every helper is re-exported" get flagged.
Documentation pages and links
The pages directly under docs/ are the stable addresses. Write a link — from the README, from AGENTS.md, from an
issue, from a commit message — against one of those rather than against a page inside an area directory: a landing
page is where its area's overview lives and stays put, while the pages beside it are split further as the area grows.
A landing page is not a table of contents. It keeps a section for every part of its area, and where that part has
grown a page of its own the section stays behind as a summary naming the owner, so a deep link written before the
split, such as the fixing handler, still lands on
that summary.
A new page under docs/ is listed twice, grouped the same way in both: under Every page in docs/README.md, and
under nav: in mkdocs.yml. In the site a section's first page is its landing page, since the top bar links the
section to it, so an area's overview goes first. tests/repository/test_doc_links.py checks both lists, and every
relative path and #anchor in the docs, the README, AGENTS.md, and the skill files, without the documentation
builder installed.
plans/ is working notes, not spec
Files under plans/ (roadmap, design explorations, proposal write-ups) are human working notes, not
authoritative implementation requirements. Implement what the issue asks for; do not treat a
plans/ document — or a numbered "Proposal N" inside one — as a spec to satisfy, and do not cite one
in code, comments, docstrings, or commit messages (that reference outlives the note and goes stale the
moment it is revised or deleted). Leave files under plans/ untouched unless the current issue
explicitly asks you to edit or remove one.
Dependencies
pyproject.toml pins PyGithub and psycopg[binary] as runtime deps; pytest, pytest-cov, ruff, and
wemake-python-styleguide live in the dev group; the analytics dashboard's streamlit and plotly live in the
separate dashboard group so the default uv sync --locked stays minimal. uv.lock is the source of truth for exact
versions and is committed — regenerate it (uv lock) whenever pyproject.toml changes. Anything else needs
justification.
Out of scope without explicit ask
- Adding dependencies that the current issue did not request.
- Reformatting unrelated files or churning whitespace.
- "Future-proofing" abstractions for hypothetical features. Implement what the issue asks for and stop.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

