From compound-engineering-feat-python
Build applications where agents are first-class citizens. Use this skill when designing autonomous agents, creating MCP tools, implementing self-modifying systems, or building apps where features are outcomes achieved by agents operating in a loop.
How this skill is triggered — by the user, by Claude, or both
Slash command
/compound-engineering-feat-python:agent-native-architectureopusThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Software agents work reliably now. A really good coding agent is a really good general-purpose agent — the same loop that refactors a codebase can organize files, manage reading lists, or automate workflows. Features aren't code you write — they're outcomes an agent achieves with tools, operating in a loop until the outcome is reached.
references/action-parity-discipline.mdreferences/agent-execution-patterns.mdreferences/agent-native-testing.mdreferences/anti-patterns.mdreferences/architecture-patterns.mdreferences/core-principles.mdreferences/dynamic-context-injection.mdreferences/files-universal-interface.mdreferences/from-primitives-to-domain-tools.mdreferences/mcp-tool-design.mdreferences/mobile-patterns.mdreferences/product-implications.mdreferences/refactoring-to-prompt-native.mdreferences/self-modification.mdreferences/shared-workspace-architecture.mdreferences/system-prompt-design.mdSoftware agents work reliably now. A really good coding agent is a really good general-purpose agent — the same loop that refactors a codebase can organize files, manage reading lists, or automate workflows. Features aren't code you write — they're outcomes an agent achieves with tools, operating in a loop until the outcome is reached.
Full explanation in references/core-principles.md.
Wait for response.
| Response | Read |
|---|---|
| 1, design, architecture, plan | architecture-patterns.md → apply checklist below |
| 2, files, workspace, filesystem | files-universal-interface.md, shared-workspace-architecture.md |
| 3, tool, mcp, primitive, crud | mcp-tool-design.md |
| 4, domain tool, when to add | from-primitives-to-domain-tools.md |
| 5, execution, completion, loop | agent-execution-patterns.md |
| 6, prompt, system prompt, behavior | system-prompt-design.md |
| 7, context, inject, runtime, dynamic | dynamic-context-injection.md |
| 8, parity, ui action, capability map | action-parity-discipline.md |
| 9, self-modify, evolve, git | self-modification.md |
| 10, product, progressive, approval, latent demand | product-implications.md |
| 11, mobile, ios, android, background, checkpoint | mobile-patterns.md |
| 12, test, testing, verify, validate | agent-native-testing.md |
| 13, review, refactor, existing | refactoring-to-prompt-native.md |
After reading the reference, apply those patterns to the user's specific context.
Verify before implementation.
Core principles
Tool design
z.string() inputs when API validates, not z.enum()Files & workspace
context.md pattern for accumulated knowledgeAgent execution
complete_task tool (not heuristic detection)Context injection
refresh_context tool)UI integration
Mobile (if applicable)
1. Atomic tools:
const tools = [
tool("read_file", "Read any file", { path: z.string() }, ...),
tool("write_file", "Write any file", { path: z.string(), content: z.string() }, ...),
tool("list_files", "List directory", { path: z.string() }, ...),
tool("complete_task", "Signal task completion", { summary: z.string() }, ...),
];
2. Behavior in system prompt:
## Your Responsibilities
When asked to organize content:
1. Read existing files to understand structure
2. Analyze what organization makes sense
3. Create/move files using your tools
4. Use your judgment about layout and formatting
5. Call complete_task when done
You decide the structure. Make it good.
3. Loop:
const result = await agent.run({
prompt: userMessage,
tools,
systemPrompt,
// loops until complete_task
});
Core patterns
Disciplines
Platform-specific
Full treatments
Architecture
Implementation
context.md or equivalent for accumulated knowledgeProduct
Describe a domain-relevant outcome you didn't build a specific feature for. Can the agent accomplish it in a loop? If yes → agent-native. If "I don't have a feature for that" → architecture is still too constrained.
npx claudepluginhub weorbitant/compound-engineering-feat-python-plugin --plugin compound-engineering-feat-pythonGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.