demo-swarm
Copilot instructions0 starsChanged 10 months agoApache-2.0View on GitHub
Quick commands (pack-centric) Testing (how to run tests) Linting / Formatting High-level architecture (big picture) Key conventions (repo-specific) - Agents vs Skills: - Agents perform decision-making and authoring (natural language handoffs). Skills are deterministic mechanical helpers (tests, linters, policy checks) — keep responsibilities separate. - Git ownership: repo-operator handles git/GitHub side effects; other agents should not perform pushes directly. - Null-over-guess: demoswarm CLI prints null for missing/unparseable results (shim normally exits 0). Use --strict/DEMOSWARM_STRICT for debug-mode non-zero exit codes. -…
- Installs packages
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- auto-linterSkill
- changelogSkill
- commitSkill
- debugSkill
- docsSkill
- exploreSkill
- featureSkill
- fixSkill
- forensicSkill
- openq-toolsSkill
- policy-runnerSkill
- pr-createSkill
- pr-prepSkill
- refactorSkill
- reviewSkill
- runs-deriveSkill
- runs-indexSkill
- secrets-toolsSkill
- spec-execSkill
- test-runnerSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use the runs/ shim (always invoke via shim):
- Very specific: line 21
When working with a target repo (where .runs/ and application code live), common single-test commands follow framework conventions:
- Very specific: line 39
Prefer repository-provided scripts or package.json/Makefile targets when present (they encode project-specific config).
- Very specific: line 77
When proposing edits to .claude/agents/*.md or .claude/commands/*.md, include: what changed, which skill/agent owns behavior, and run bash …
- Very specific: line 78
Do not make git/GitHub ops.
- Distinctive: line 82
If you'd like, add MCP server configuration (Playwright, etc.) for the target repo type — skip if not applicable.
≈ “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
Copilot instructions for demo-swarm pack
Purpose
- Short, action-oriented guidance for AI-assisted sessions (Copilot/agents) working in this repo.
Quick commands (pack-centric)
- Validate the pack (full validation):
- bash .claude/scripts/pack-check.sh
- Use the runs/ shim (always invoke via shim):
- bash .claude/scripts/demoswarm.sh
<command>[OPTIONS] - Note: the shim unsets DEMOSWARM_STRICT for agent-safe behavior; use
--strictorDEMOSWARM_STRICT=1for human debugging.
- bash .claude/scripts/demoswarm.sh
- Install local helpers (developer convenience):
- cargo install --path tools/demoswarm-pack-check --root .demoswarm
- cargo install --path tools/demoswarm-runs-tools --root .demoswarm
Testing (how to run tests)
- This is a "pack-only" repository (agents, skills, docs). The canonical validation is
pack-check.sh. - When working with a target repo (where .runs/ and application code live), common single-test commands follow framework conventions:
- Rust (single test):
- cargo test full::path::to::test
- cargo test --test <integration_test_name>
- Python (single test function):
- pytest tests/unit/test_module.py::test_name -v
- pytest tests/unit/test_module.py -v
- JavaScript/TS (single test file):
- npm test -- --colors tests/auth.test.ts
- npm test -- --testNamePattern="login"
- Rust (single test):
- Fallback detection used by the test-runner skill: presence of Cargo.toml, package.json, pyproject.toml, or go.mod triggers respective commands.
Linting / Formatting
- Auto-linter shim behavior and examples (see .claude/skills/auto-linter/SKILL.md):
- Rust: cargo fmt --all; cargo clippy --all-targets --all-features
- Python: black src/ tests/; ruff check src/ tests/; ruff check --fix
- JS/TS: npx prettier --write "src/**/*.{js,ts,jsx,tsx}"; npx eslint --fix
- Prefer repository-provided scripts or package.json/Makefile targets when present (they encode project-specific config).
High-level architecture (big picture)
- Purpose: this repo is a portable "pack" for Claude Code (agents, commands, skills) that gets copied into target repos; it is not an application repository.
- Key directories:
- .claude/ — agents (.md), commands (.md), skills (SKILL.md), scripts (pack-check.sh, demoswarm.sh)
- docs/ — Diátaxis documentation
- .runs/ — NOT present here; in target repos this stores run artifacts:
.runs/<run-id>/<flow>/ - tools/ and .demoswarm/ — place for Rust/CLI implementations (preferred runtimes)
- Flow model: seven flows exposed as slash commands (/flow-1-signal → /flow-7-wisdom). Each flow writes receipts and artifacts; receipt files (e.g., *_receipt.json) are canonical machine-readable signals.
- Shims: always call bash .claude/scripts/demoswarm.sh and .claude/scripts/pack-check.sh rather than assuming binaries on PATH; shims standardize behavior across platforms.
Key conventions (repo-specific)
- Agents vs Skills:
- Agents perform decision-making and authoring (natural language handoffs). Skills are deterministic mechanical helpers (tests, linters, policy checks) — keep responsibilities separate.
- Git ownership:
repo-operatorhandles git/GitHub side effects; other agents should not perform pushes directly. - Null-over-guess: demoswarm CLI prints
nullfor missing/unparseable results (shim normally exits 0). Use--strict/DEMOSWARM_STRICT for debug-mode non-zero exit codes. - Frontmatter & agent files:
- Agent files in
.claude/agents/require YAML frontmatter (2-space indentation). Required fields: name, description, color, model (ofteninherit). - Color → role-family mapping is meaningful (see CONTRIBUTING.md); keep color choices consistent with role family semantics.
- Agent files in
- Validation: after editing
.claude/*or agents/skills/commands, runbash .claude/scripts/pack-check.shto validate structure and frontmatter. - Receipts-first reporting: flows write
*_receipt.jsonand other artifacts under.runs/<run-id>/<flow>/— use these files for machine parsing rather than natural-language claims. - Docs & style: Markdown = GitHub-flavored; YAML uses 2-space indentation; lines ~<= 120 chars where practical.
Where to look (authoritative files)
- CLAUDE.md — pack-level policy, rules, and flow model (primary source for agent behavior)
- .claude/commands/* — flow orchestrators (what slash commands do)
- .claude/skills/*/SKILL.md — canonical test/lint/policy command examples and detection rules
- .claude/scripts/pack-check.sh and .claude/scripts/demoswarm.sh — shims to use for tooling
- CONTRIBUTING.md — developer guidance for editing agents, colors, frontmatter, and local validation
- .github/workflows/pack.yml — CI for pack validation
Notes for Copilot sessions
- Prioritize reading CLAUDE.md and
.claude/skills/*/SKILL.mdbefore making changes that affect agents or tooling. - When proposing edits to
.claude/agents/*.mdor.claude/commands/*.md, include: what changed, which skill/agent owns behavior, and runbash .claude/scripts/pack-check.shin your description. - Do not make git/GitHub ops; suggest
repo-operatoractions instead.
Questions or adjustments
If you'd like, add MCP server configuration (Playwright, etc.) for the target repo type — skip if not applicable.
Generated from: README.md, CONTRIBUTING.md, CLAUDE.md, .claude/skills/* and .claude/scripts (pack-check & demoswarm)
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.

