Open-source skills for designing and reviewing software with AI agents
Python agent-skillsai-agentsantigravityclaude-codeclaude-code-pluginclaude-skillscodexcodex-plugincoding-agentscontext-engineeringdeveloper-toolsgeminillmmulti-agentprompt-engineeringspec-driven-development
feat: let users set the EGM artifact directory
John Pettitt8c105621704a
diff --git a/docs/claude.md b/docs/claude.mdindex 7fae189..d6f6a70 100644--- a/docs/claude.md+++ b/docs/claude.md@@ -29,6 +29,10 @@ in chat; the model reads the draft again before each revision.Write briefs, drafts, and reports to the user's working directory. Theper-session scratchpad is not the artifact directory: it belongs to onesession, and the deliverables must outlive it.+If the user's prompt or agent instructions file (`CLAUDE.md` or `AGENTS.md`)+has a line `EGM artifact directory: <path>`, write them to that folder instead:+resolve a relative path against the working directory, and create the folder if+it does not exist.In Claude Code, `egm:egm-synthesizer` may spawn reviewers (nesting is allowedup to 3 levels by default), or the main context may dispatch reviewers directly.In Claude Cowork, subagents cannot spawn further subagents, so dispatchdiff --git a/docs/codex.md b/docs/codex.mdindex a2bb4b5..fee7811 100644--- a/docs/codex.md+++ b/docs/codex.md@@ -25,6 +25,11 @@ skill's directory. Resolve user documents and generated artifacts againstthe user's working directory. Never substitute similarly named files in theuser's project for bundled personas or standards.+If the user's prompt or agent instructions file (`AGENTS.md`) has a line+`EGM artifact directory: <path>`, write briefs, drafts, and reports to that+folder: resolve a relative path against the working directory, and create the+folder if it does not exist.+In ChatGPT Work, a skill may be exposed through a cloud resource identifierwhile supporting files live in the installed local bundle. Use the installedpath supplied by the skill inventory or installation metadata for those files;diff --git a/docs/harnesses.md b/docs/harnesses.mdindex 512126a..c81cf0e 100644--- a/docs/harnesses.md+++ b/docs/harnesses.md@@ -71,6 +71,23 @@ the review skills stop instead of running in the same context. Check actualtool availability rather than inferring it from the product name. This appliesto ChatGPT modes that do not expose native fresh-context delegation.+## Artifact Directory++Skills write briefs, drafts, and reports to the working directory, or to the+harness's artifact directory if it has one. In Claude Code, Claude Cowork,+Codex, and ChatGPT, you can name another folder. Add this line to your prompt,+or to an agent instructions file that your harness loads (`CLAUDE.md` or+`AGENTS.md`, in the project or at user level):++```text+EGM artifact directory: .dev/docs+```++A relative path is relative to the working directory. Design docs and other+project files do not move. Claude Code reads a project `AGENTS.md` only when+the project has no `CLAUDE.md`. To keep the files out of git, add the folder to+`.gitignore`.+## Support Status & Contributing Other Harnesses**Antigravity**, **Claude Code**, and **Codex** pass automated installation, reviewer isolation, and end-to-end workflow fixtures.diff --git a/tests/unit/test_harnesses.py b/tests/unit/test_harnesses.pyindex b6082dc..1be5264 100644--- a/tests/unit/test_harnesses.py+++ b/tests/unit/test_harnesses.py@@ -231,3 +231,11 @@ def test_bundled_prompt_dependencies_and_harness_guides() -> None:continuebase = prompt.parent if target.startswith("references/") else ROOTassert (base / target).is_file(), f"{prompt}: missing {target}"+++def test_artifact_directory_override_is_documented_for_each_harness() -> None:+ # The models match this exact line in the user's prompt or instruction file.+ marker = "EGM artifact directory: "+ for guide in ("docs/claude.md", "docs/codex.md", "docs/harnesses.md"):+ text = " ".join((ROOT / guide).read_text(encoding="utf-8").split())+ assert marker in text, f"{guide} does not document `{marker}<path>`"