iris-agentic-dev
Copilot instructions41 starsChanged 3 months agoMITView on GitHub
MCP server in Rust (2021, two crates: iris-agentic-dev-core for tools and the server, iris-agentic-dev-bin for the CLI) that gives AI coding agents tools against a live IRIS instance. AGENTS.md has the build commands, the dev container, and the file map. Read it rather than guessing — this file only covers the rules that trip up a first PR. Write the test before the code. Three layers, and a change usually needs more than one: 1. Config round-trip — parse a…
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- iris-coverage-runSkill
- iris-coverage-setupSkill
- pyprodSkill
- aihub-eapSkill
- ensemble-productionSkill
- iris-agentic-devSkill
- iris-ai-hubSkill
- iris-connectivitySkill
- iris-container-graceful-shutdownSkill
- iris-cpf-mergeSkill
- iris-devtesterSkill
- iris-docsSkill
- iris-embedded-pythonSkill
- irishealth-containerSkill
- iris-linux-dockerSkill
- iris-objectscript-evalSkill
- iris-pgwireSkill
- iris-product-featuresSkill
- irispython-connectorSkill
- iris-sqlSkill
- iris-vector-aiSkill
- iris-vscode-objectscriptSkill
- iris-windows-iis-setupSkill
- objectscript-coverageSkill
- objectscript-debuggingSkill
- objectscript-fewshot-fixesSkill
- objectscript-guardrailsSkill
- objectscript-list-patternsSkill
- objectscript-loop-patternsSkill
- objectscript-mac-routinesSkill
- objectscript-navigationSkill
- objectscript-repairSkill
- objectscript-reviewSkill
- objectscript-sql-patternsSkill
- objectscript-tddSkill
- objectscript-unit-testSkill
- opencode-introspectSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Write the test before the code.
- Distinctive: line 22
Never mock IRIS: No mocked Atelier client, no stubbed responses.
- Very specific: line 34
Every cargo invocation in CI passes --locked.
- Distinctive: line 54
Never credit an AI assistant in a commit message, changelog, or doc.
- Very specific: line 55
After editing Markdown, run markdownlint-cli2 --fix and prettier --write on it.
≈ “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 — iris-agentic-dev
MCP server in Rust (2021, two crates: iris-agentic-dev-core for tools and the server,
iris-agentic-dev-bin for the CLI) that gives AI coding agents tools against a live IRIS
instance.
AGENTS.md has the build commands, the dev container, and the file map. Read it rather
than guessing — this file only covers the rules that trip up a first PR.
Tests
Write the test before the code. Three layers, and a change usually needs more than one:
- Config round-trip — parse a TOML string with
toml::from_str, not a struct literal, then assert the resulting fields. A struct literal cannot catch a key that serde silently drops because the field is missing. - Binary invocation — for any CLI flag or
mcp.rswiring, spawn the binary and drive it over stdio withinitialize+tools/listortools/call, then assert on the JSON-RPC response. Catches a flag that parses but was never wired to anything. - Live IRIS — anything that talks to IRIS runs
#[ignore]against the real container.
Never mock IRIS. No mocked Atelier client, no stubbed responses. A mocked IRIS test passes while the real code path is broken, which is worse than no test.
Integration and e2e runs need --test-threads=1; the test binaries share env vars and
race each other otherwise.
The question to ask before opening a PR: if I changed this flag, field, or file silently, would any test fail? If not, the test is missing.
Enforcement checks that will fail CI
cargo fmt --all -- --checkandcargo clippy --all-targets -- -D warnings.- Every cargo invocation in CI passes
--locked. A driftingCargo.lockdirties the version string thatcheck_configreports, so commit the lock with the change. - Adding a skill means updating three manifests plus the skill on disk:
crates/iris-agentic-dev-core/src/skills/bundled.rs,[provides] skillsiniris-agentic-dev.toml, andskills.sh.json.test_skill_manifest_syncfails if any one is missed. - Anything that must agree with the workspace version (
Cargo.toml,package.json,.claude-plugin/plugin.json) needs a cross-file assertion test when it is added.
Writing ObjectScript
Skill files and test fixtures contain ObjectScript. Follow skills/skills/objectscript-guardrails
and objectscript-review — first line Set tSC = $$$OK, last line Quit tSC, $$$ISERR()
never a bare $, params pName, locals tName, no $GET on object properties, no text
columns in SQL, no ORDER BY with SELECT TOP.
Conventions
- Conventional commit subjects (
feat:,fix:,docs:,chore:). A commit-msg hook rejects anything else. - Never credit an AI assistant in a commit message, changelog, or doc.
- After editing Markdown, run
markdownlint-cli2 --fixandprettier --writeon it.
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.

