agent-prompt-contract-architect
v0.1.0
Published
A project-local agent skill for generating structured system prompt templates.
Maintainers
Readme
Agent Prompt Contract Architect
Project-local agent skill for generating structured System Prompt Templates.
The skill helps an agent turn available upstream context plus an Agent Operating Frame into a clear prompt template with responsibilities, reasoning protocol, execution flow, deliverable expectations, and boundary notes.
Install
Directly from GitHub with npx
After this repo is pushed to GitHub, install the skill with:
npx github:snake-fan/agent-prompt-contract-architectBy default, the installer copies skill/SKILL.md to:
~/.agents/skills/prompt-template-generationThe installer respects these locations in order:
AGENTS_SKILLS_DIRCODEX_HOME/skills~/.agents/skills
Use a custom skills directory when needed:
npx github:snake-fan/agent-prompt-contract-architect --dir ~/.agents/skillsReplace an existing install:
npx github:snake-fan/agent-prompt-contract-architect --forcePreview without writing files:
npx github:snake-fan/agent-prompt-contract-architect --dry-runIf your npm version treats installer flags as npx flags, pass them after --:
npx github:snake-fan/agent-prompt-contract-architect -- --dry-runAfter publishing to npm
If this package is published under its package name, the shorter command becomes:
npx agent-prompt-contract-architectskills CLI style
This repo also includes .claude-plugin/plugin.json, matching the convention used by repositories such as mattpocock/skills. Installers that understand that convention can consume the repo directly, for example:
npx skills@latest add snake-fan/agent-prompt-contract-architectUse
Once installed, ask the agent to use the prompt-template-generation skill when you need to generate, refactor, architect, or improve a system prompt template for a target agent.
The skill is designed to:
- use available upstream context without requiring every context type to exist
- combine that context with the target agent's operating frame
- clarify only blocking gaps before generation
- output a system prompt template, not construction-time notes
- keep recommended sections flexible rather than mandatory
Repository Layout
.
|-- skill/
| `-- SKILL.md
|-- bin/
| `-- install-skill.mjs
|-- .claude-plugin/
| `-- plugin.json
|-- CONTEXT.md
|-- package.json
`-- README.mdDevelopment
Run the installer in dry-run mode:
npm run install:dry-runInspect the npm package contents:
npm run pack:dry-runInstall locally into a temporary directory:
node bin/install-skill.mjs --dir /tmp/agent-skills-test --force