opencode-swarm
Copilot instructions485 starsChanged 3 months agoMITView on GitHub
These instructions apply to Copilot coding agents, Copilot custom agents, and any AI agent assigned to a GitHub issue in this repository. Before committing, pushing, opening a pull request, updating a pull request body, marking a pull request ready, or claiming CI/merge readiness, you MUST load and follow these, in precedence order (highest authority first): The commit-pr skill is the only approved publication workflow. The requirements summarized below are a high-visibility mirror of .claude/skills/commit-pr/SKILL.md and are subordinate to it. If…
- Commits and pushes
In this repository66 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ci-fix-monitorSkill
- codebase-review-swarmSkill
- commit-prSkill
- contributingSkill
- engineering-conventionsSkill
- fork-pr-operationsSkill
- guardrail-patternsSkill
- issue-tracerSkill
- mock-to-internals-migrationSkill
- pr-review-fixSkill
- qa-sweepSkill
- research-firstSkill
- running-testsSkill
- subprocess-safetySkill
- swarm-ci-monitorSkill
- swarm-implementSkill
- swarm-pr-feedbackSkill
- swarm-pr-reviewSkill
- swarm-pr-subscribeSkill
- swarmSkill
- tech-debt-ci-reviewSkill
- test-file-splitSkill
- unswarmSkill
- writing-testsSkill
- brainstormSkill
- clarifySkill
- clarify-specSkill
- codebase-review-swarmSkill
- commit-prSkill
- consultSkill
- councilSkill
- critic-gateSkill
- deep-diveSkill
- deep-researchSkill
- design-docsSkill
- discoverSkill
- durable-session-stateSkill
- editing-skillsSkill
- engineering-conventionsSkill
- executeSkill
- fork-pr-operationsSkill
- graphifySkill
- issue-ingestSkill
- issue-tracerSkill
- orchestrating-subagentsSkill
- phase-wrapSkill
- pre-phase-briefingSkill
- qa-sweepSkill
- research-firstSkill
- rust-crate-ciSkill
- specifySkill
- swarm-ci-monitorSkill
- swarm-implementSkill
- swarm-planSkill
- swarm-pr-feedbackSkill
- swarm-pr-reviewSkill
- swarm-pr-subscribeSkill
- swarm-resumeSkill
- The first 60 shown.
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
21 rules. About 0 are common, 14 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Before committing, pushing, opening a pull request, updating a pull request body, marking a pull request ready, or claiming CI/merge …
- Very specific: line 17
Do not run git push, gh pr create, gh pr edit, or gh pr ready until the commit-pr checklist is satisfied.
- Distinctive: line 21
Every non-release-bot PR title MUST exactly match:
- Distinctive: line 31
Every PR body MUST include these sections, in this order:
- Very specific: line 37
When the PR resolves an issue, the body's first line MUST be Closes #<issue-number>.
- Very specific: line 45
Before opening or updating a PR, run the validation required by .claude/skills/commit-pr/SKILL.md (Step 3).
- Very specific: line 56
If validation cannot be run because of environment limitations, the PR body must say so explicitly under ## Test plan and explain what …
- Distinctive: line 64
If the PR closes an issue, post an issue comment containing:
- Distinctive: line 73
If the PR title, body, release fragment, invariant audit, issue comment, or validation evidence cannot be produced, do not open or mark the …
- Distinctive: line 82
Never hardcode secrets, tokens, API keys, or connection strings — use environment variables or a vault.
- Distinctive: line 83
All user input must be validated and sanitised before use.
- Distinctive: line 85
No sensitive data (PII, tokens, passwords) in logs at any level.
- Distinctive: line 89
All async operations must have proper error handling (try/catch or .catch()).
- Distinctive: line 92
Avoid swallowing exceptions silently — log at minimum.
- Distinctive: line 96
No commented-out dead code — use version control instead.
- Distinctive: line 98
Avoid magic numbers and strings — use named constants.
- Distinctive: line 101
Avoid unnecessary allocations in hot paths.
- Distinctive: line 106
All new public methods must have at least one unit test.
- Very specific: line 108
Test files must be co-located with source using the pattern <filename>.test.<ext>.
- Very specific: line 111
Prefer explicit types over any or implicit inference where possible.
- Very specific: line 113
Use consistent indentation (spaces, not tabs) per the project's .editorconfig.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mandatory PR Publication Protocol
These instructions apply to Copilot coding agents, Copilot custom agents, and any AI agent assigned to a GitHub issue in this repository.
Before committing, pushing, opening a pull request, updating a pull request body, marking a pull request ready, or claiming CI/merge readiness, you MUST load and follow these, in precedence order (highest authority first):
AGENTS.mddocs/engineering-invariants.md.claude/skills/commit-pr/SKILL.md— the single source of truth for publication.agents/skills/commit-pr/SKILL.md— execution adapter (routes to #3).github/skills/commit-pr/SKILL.md— Copilot discovery shim (routes to #3)
The commit-pr skill is the only approved publication workflow.
The requirements summarized below are a high-visibility mirror of
.claude/skills/commit-pr/SKILL.mdand are subordinate to it. If anything here ever differs from that skill, the skill wins — update this file to match rather than following the stale copy.
Do not run git push, gh pr create, gh pr edit, or gh pr ready until the commit-pr checklist is satisfied.
PR title requirements
Every non-release-bot PR title MUST exactly match:
<type>(<scope>): <description>
Allowed types: feat, fix, perf, revert, docs, chore, refactor, test, ci, build.
The description must be lowercase and must not end with a period. CI runs action-semantic-pull-request (the check-title job) and will fail malformed titles.
PR body requirements
Every PR body MUST include these sections, in this order:
## Summary## Invariant audit## Test plan
When the PR resolves an issue, the body's first line MUST be Closes #<issue-number>.
The ## Invariant audit section must follow the template in .claude/skills/commit-pr/SKILL.md (Step -1), listing each touched/not-touched invariant with concrete evidence.
The test plan must list the exact commands run and their result. Do not claim validation passed unless commands were actually run or remote CI completed successfully.
Validation requirements
Before opening or updating a PR, run the validation required by .claude/skills/commit-pr/SKILL.md (Step 3).
At minimum, do not publish without documenting:
- build result (including
git diff --exit-code -- dist/) - typecheck result
- formatting/lint result (
bunx biome ci .) - relevant unit tests
- broader integration/security/smoke validation when required by the touched invariants
- any pre-existing failure proof from a clean
origin/mainworktree
If validation cannot be run because of environment limitations, the PR body must say so explicitly under ## Test plan and explain what remains unvalidated.
Release fragment requirement
Any PR that ships a user-visible change MUST add a pending release fragment at docs/releases/pending/<unique-slug>.md. Do not hand-edit package.json version, CHANGELOG.md, or .release-please-manifest.json. The pr-standards check enforces this.
Issue comment requirement
If the PR closes an issue, post an issue comment containing:
- the PR link
- what changed
- how to use it
- migration steps or
No migration required
Hard stop
If the PR title, body, release fragment, invariant audit, issue comment, or validation evidence cannot be produced, do not open or mark the PR ready.
Repository QA Standards
These standards apply to all Copilot interactions including code generation and PR review.
Security
- Never hardcode secrets, tokens, API keys, or connection strings — use environment variables or a vault.
- All user input must be validated and sanitised before use.
- SQL and database queries must use parameterised statements, never string interpolation.
- No sensitive data (PII, tokens, passwords) in logs at any level.
- Public endpoints must include authentication checks and input validation.
Reliability
- All async operations must have proper error handling (try/catch or .catch()).
- Network calls must include timeout and retry logic.
- Resource cleanup must be handled in finally blocks or equivalent.
- Avoid swallowing exceptions silently — log at minimum.
Maintainability
- Functions must do one thing and stay under 50 lines where practical.
- No commented-out dead code — use version control instead.
- Variable and function names must be descriptive and follow project conventions.
- Avoid magic numbers and strings — use named constants.
Performance
- Avoid unnecessary allocations in hot paths.
- Database queries must avoid N+1 patterns and use appropriate indexes.
- Large data sets must use streaming or pagination rather than loading entirely into memory.
Testing
- All new public methods must have at least one unit test.
- Integration tests must clean up after themselves.
- Test files must be co-located with source using the pattern
<filename>.test.<ext>.
Code Style
- Prefer explicit types over
anyor implicit inference where possible. - Limit line length to 120 characters.
- Use consistent indentation (spaces, not tabs) per the project's
.editorconfig.
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.

