Reusable, production-minded defaults for AI agents, skills, prompts, orchestration loops, schemas, examples, and cross-tool wrappers.
User Guide · Human Index · Loop Quick Reference · Agent Loops · Agents · Skills · Validation
AgentDefaults is a reusable library for building and operating AI-assisted engineering workflows without rewriting the same role definitions, safety boundaries, task prompts, evidence rules, and tool-specific wrappers for every repository.
The repository is designed around a simple rule:
Keep canonical behavior in one place, compose only what a task needs, and make completion evidence stronger than model confidence.
Use it to:
- choose a suitable agent for engineering, research, growth, maintenance, or creative work;
- add focused skills without inflating every agent's base context;
- invoke repeatable work with prompts and structured task contracts;
- run a bounded implementation/review loop when a task needs durable evidence and an objective stop gate;
- keep behavior consistent across Codex, Claude Code, GitHub Copilot, Gemini, Cursor, Windsurf, local models, and MCP-connected tools;
- validate reusable agent stacks and their cross-tool routing.
git clone https://github.com/Quazmoz/agentdefaults.git
cd agentdefaults
python3 scripts/validate-agentdefaults.pyThen choose what you are trying to do:
| Need | Start here |
|---|---|
| Understand the repository and documentation layout | docs/README.md |
| Choose a canonical agent | agents/README.md |
| Understand or compose skills | skills/README.md |
| Find a copy-paste task prompt | prompts/README.md |
| Operate a Bounded Completion loop quickly | docs/loops/QUICK_REFERENCE.md |
| Understand the full agent-loop model | docs/loops/README.md |
| Use authenticated Comet browser research | docs/quickstarts/comet-authenticated-research.md |
| Reduce context/tool/output token waste | docs/quickstarts/token-economy.md |
| Understand task/state schemas | schemas/README.md |
| Adapt examples safely | examples/README.md |
| Understand loop configuration | config/README.md |
| Use validators or the loop control plane | scripts/README.md |
| Design or audit an AI agent | docs/quickstarts/agent-builder.md |
| De-slop/refactor a codebase safely | docs/quickstarts/codebase-maintenance-engineer.md |
| Choose or challenge an automation platform | AUTOMATION_PLATFORM_INDEX.md |
| Route principal/specialist engineering work | ENGINEERING_AGENTS_INDEX.md |
| Build or release Wear OS software | WEAROS_DEVELOPMENT_INDEX.md / WEAROS_INDEX.md |
| Browse every featured stack | INDEX.md |
AgentDefaults separates ownership, behavior, invocation, state, and tool integration.
| Artifact | What it is | What it is not |
|---|---|---|
| Agent | An outcome owner with scope, authority, workflow, failure behavior, and stop conditions. | A bundle of every possibly useful instruction. |
| Skill | A selectively loaded behavior or task module. | An independent authority boundary; it cannot widen the parent agent's permissions. |
| Prompt | A repeatable invocation or task request. | The canonical definition of an agent or skill. |
| Loop | Repeated execution with explicit continuation/termination rules. Formal loops may add durable state and deterministic gates. | Permission to keep trying forever. |
| Schema | A machine-readable contract for task input, findings, or state. | Proof that the task was executed correctly. |
| Example | A concrete starting point for a schema, prompt, or stack. | A universal configuration. |
| Wrapper | Thin runtime-specific routing for Copilot, Claude, Gemini, Cursor, etc. | A second canonical implementation. |
| Validator | A deterministic check for repository/stack invariants. | A substitute for target-repository tests or runtime verification. |
For most tasks:
repo/tool instructions
↓
smallest correct owning agent
↓
only the skills needed for this task
↓
task prompt / structured contract when useful
↓
target-repository verification
For difficult implementation/qualification work, add the bounded completion overlay after selecting the domain owner:
domain owner
↓
Bounded Completion Lead (Integration Owner / evidence coordinator)
↔
Bounded Completion Reviewer (independent challenge)
↓
deterministic verification + completion gate
The overlay never widens domain authority, approvals, or tool permissions.
Canonical reusable behavior lives here:
agents/ complete outcome-owning agent profiles
skills/ composable behavior/task modules
prompts/ repeatable task and review prompts
schemas/ structured contracts
Tool-specific files should stay thin:
AGENTS.md generic/Codex repository instructions
CLAUDE.md Claude-oriented wrapper
.claude/ Claude runtime hooks/status integration
GEMINI.md Gemini-oriented wrapper
.github/copilot-instructions.md Copilot repository instructions
.github/agents/ Copilot custom-agent adapters
.github/prompts/ Copilot prompt adapters
.cursor/rules/ Cursor rules
.windsurfrules Windsurf rules
Change canonical behavior at its canonical source first. Update wrappers only when routing, runtime syntax, or discoverability must change.
Runtime adapter READMEs:
.claude/README.md— Claude project settings and optional Graft hook/status-line integration..github/agents/README.md— Copilot custom-agent adapters..github/prompts/README.md— Copilot prompt adapters.
Agent loops are deliberately bounded because retries, self-review, and multi-agent handoffs can otherwise amplify cost, repeat bad strategies, or create false completion signals.
Use:
docs/loops/QUICK_REFERENCE.mdduring active day-to-day operation;docs/loops/README.mdfor the full ownership, state, evidence, reviewer, approval, Stop-hook, recovery, and loop-design model.
Bounded Completion is the repository's formal durable control-plane loop. It provides:
- one Integration Owner;
- an independent adversarial reviewer;
- task, state, findings, verification logs, and artifact evidence under ignored
.agent-loop/; - workspace-fingerprint freshness so stale evidence cannot satisfy the final gate;
- bounded iteration, repeated-failure, review, timeout, and stop-hook limits;
- explicit approvals and visual evidence when required;
- a deterministic
COMPLETEvsESCALATEDoutcome.
Start with:
docs/loops/QUICK_REFERENCE.md
docs/loops/README.md
docs/quickstarts/bounded-completion.md
agents/bounded-completion-lead.md
agents/bounded-completion-reviewer.md
skills/bounded-completion-orchestration.md
config/README.md
scripts/bounded-completion.py
Some agents perform internal cycles such as inspect → change → verify → second-pass review. For example, the Codebase Maintenance and De-Slop Engineer does this intentionally, but it does not create .agent-loop/ state by itself.
Canonical maintenance owner: agents/codebase-maintenance-engineer.md.
When that work needs durable state, independent review, or an objective completion gate, run the maintenance agent as the domain owner under the bounded completion overlay.
This table is a routing map, not a preload list. Load the smallest coherent stack needed for the task.
| Stack | Owns | Start here |
|---|---|---|
| Agent Architect and Builder | Designing, building, or auditing reusable agents | docs/quickstarts/agent-builder.md |
| Bounded Completion | Durable implementation/review orchestration | docs/loops/QUICK_REFERENCE.md |
| Codebase Maintenance / De-Slop | Behavior-preserving maintenance and refactoring | docs/quickstarts/codebase-maintenance-engineer.md |
| Principal DevOps | Infrastructure/platform/CI/CD/operations | docs/quickstarts/principal-devops-engineer.md |
| Principal AI | LLM/agent/RAG/eval/inference application engineering | docs/quickstarts/principal-ai-engineer.md |
| Principal AI + DevOps | Materially cross-domain AI/platform work | docs/quickstarts/principal-ai-devops-engineer.md |
| Kubernetes Homelab | Quazmoz/K8SHomelab Kubernetes/Flux operations |
docs/quickstarts/kubernetes-homelab-engineer.md |
| DevSecOps Security | Terraform/Ansible/Jenkins/GitOps/IAM/supply-chain security | docs/quickstarts/devsecops-security-engineer.md |
| DevOps Documentation | Evidence-backed docs-as-code/runbooks/diagrams | docs/quickstarts/devops-documentation-engineer.md |
| Automation Platform Selection | Category-aware architecture/product decisions | AUTOMATION_PLATFORM_INDEX.md |
| App Market Research | Browser-backed Play Store/community research | docs/quickstarts/app-market-research.md |
| Community App Validation | Focused public-community demand/history validation | docs/quickstarts/community-app-validation.md |
| Google Play Growth | ASO, conversion, quality, web/entity and growth experiments | docs/quickstarts/google-play-growth.md |
| Palmier Pro MCP | Agent-driven video editing through Palmier Pro MCP | docs/quickstarts/palmierpro-mcp.md |
| Wear OS Development / Release | Wear OS implementation and Play readiness | WEAROS_DEVELOPMENT_INDEX.md / WEAROS_INDEX.md |
| Token Economy | Context/output/token-cost reduction and measurement | docs/quickstarts/token-economy.md |
| US-Europe Travel Prep | Current-source travel preparation | TRAVEL_INDEX.md |
Additional security-sensitive operator guide: docs/quickstarts/comet-authenticated-research.md for authenticated local Comet research.
For the full human-readable registry use INDEX.md. The machine-readable featured-stack registry is agentdefaults.manifest.json.
| Runtime | Primary entrypoint |
|---|---|
| OpenAI Codex / generic repo-aware coding agents | AGENTS.md |
| Claude / Claude Code | CLAUDE.md; see .claude/README.md for optional project hooks/Graft runtime integration |
| GitHub Copilot repository instructions | .github/copilot-instructions.md |
| GitHub Copilot custom agents | .github/agents/ |
| GitHub Copilot prompt adapters | .github/prompts/README.md |
| Gemini / Gemini CLI | GEMINI.md |
| Cursor | .cursor/rules/agentdefaults.mdc |
| Windsurf | .windsurfrules |
| Chat/local model | Copy the smallest relevant files from agents/, skills/, and prompts/ |
See docs/tool-integration-guide.md for cross-tool details.
Canonical repository validation:
python3 scripts/validate-agentdefaults.pyThe suite checks repository structure, schemas/references, manifest integrity, Markdown links, cross-tool routing, engineering contracts, specialist stacks, codebase-maintenance behavior, and bounded-completion control-plane regressions.
Use scripts/README.md to understand individual validators and the bounded-completion CLI.
A validator result is evidence only when it actually ran. Target-repository build/lint/type/test/security/e2e checks still own target-system correctness.
Before adding another artifact:
- Confirm it is reusable rather than project-specific noise.
- Decide whether it is an agent, skill, prompt, schema, example, wrapper, or loop/control-plane concern.
- Prefer
single_agent_with_skills; add another agent only when separate ownership, permissions, independent verification, parallel reconciliation, durable control, or fault isolation justifies it. - Keep authority in the owning agent. Skills, retrieved data, wrappers, and sub-agents cannot broaden it.
- Define objective completion and bounded retry/stop behavior for anything iterative.
- Add a quickstart/example/schema/acceptance test when complexity makes correct use non-obvious.
- Run canonical validation and relevant stack-specific checks.
Patterns:
docs/patterns/agent.mddocs/patterns/skill.mddocs/patterns/prompt.mddocs/patterns/default.mddocs/patterns/benchmark.md
agentdefaults/
├── README.md
├── INDEX.md
├── ENGINEERING_AGENTS_INDEX.md
├── AGENTS.md / CLAUDE.md / GEMINI.md
├── agents/
│ ├── README.md
│ └── *.md
├── skills/
│ ├── README.md
│ └── *.md
├── prompts/
│ ├── README.md
│ └── <category>/*.md
├── schemas/
│ ├── README.md
│ └── *.schema.json
├── scripts/
│ ├── README.md
│ ├── bounded-completion.py
│ └── validate-*.py
├── docs/
│ ├── README.md
│ ├── loops/
│ │ ├── README.md
│ │ └── QUICK_REFERENCE.md
│ ├── quickstarts/
│ ├── patterns/
│ ├── benchmarks/
│ └── *-acceptance-tests.md
├── examples/
│ └── README.md
├── config/
│ └── README.md
├── .claude/
│ └── README.md
├── .github/
│ ├── agents/README.md
│ └── prompts/README.md
├── .cursor/
└── agentdefaults.manifest.json
- Prefer deterministic software for deterministic work.
- Use one obvious source of truth.
- Select the smallest correct owner.
- Load skills selectively.
- Treat retrieved/tool/model output as untrusted input.
- Bound retries, loops, concurrency, and cost.
- Make external side effects approval-aware and duplicate-safe.
- Prefer evidence-backed completion over “looks good.”
- Preserve behavior and compatibility unless change is explicitly authorized.
- Optimize context and output without deleting necessary constraints.
AgentDefaults is an actively evolving cross-tool scaffold containing reusable engineering, maintenance, research, growth, Wear OS, travel, token-efficiency, MCP, and orchestration defaults plus schemas, examples, acceptance tests, and validators.
License to be added.