code-doctrine

Enforce domain-centered coding standards with explicit boundary and error-handling rules.

3|Updated May 23, 2026
One-click install
npx skills add https://github.com/kamilchm/code-doctrine --skill code-doctrine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-doctrine
Source: https://github.com/kamilchm/code-doctrine/tree/main/skill
Command: npx skills add https://github.com/kamilchm/code-doctrine --skill code-doctrine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Shared code doctrine for agents: establishes a common, rigorous approach to coding, boundaries, and operational discipline to improve maintainability and consistency.

Core Features & Use Cases

  • Domain-centered design: enforces clear boundaries between domain logic and infrastructure.
  • Explicit failure handling and observable diagnostics to speed debugging.
  • SQL-first data defaults and pragmatic system architecture guidelines that fit real-world projects.

Quick Start

Apply the code-doctrine standards to a new agent module and run the repository check to verify domain boundaries and error-handling rules.

Frequently Asked Questions about code-doctrine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce coding standards and domain boundaries for agent software?

You enforce coding standards for agent software by applying a shared code doctrine that mandates explicit boundary parsing, typed errors, and CLI-first command boundaries. This ensures clear separation between domain logic and infrastructure.

What is domain-centered design and how does it structure agent systems?

Domain-centered design structures agent systems by enforcing clear boundaries between core domain logic and underlying infrastructure. This separation improves maintainability and operational consistency across complex agent-based modules.

How do I set up explicit failure handling and observable diagnostics for agents?

Set up explicit failure handling and observable diagnostics for agents by adopting a coding doctrine that requires typed errors and structured diagnostics. This operational discipline speeds up debugging and clarifies system state during execution.

Can I use SQL-first data defaults when planning agent system architecture?

Yes, you can use SQL-first data defaults when planning agent system architecture. The doctrine provides pragmatic system architecture guidelines that fit real-world projects while maintaining strict domain boundaries and operational discipline.

How do I verify domain boundaries and error-handling rules in an agent module?

Verify domain boundaries and error-handling rules in an agent module by applying code-doctrine standards and running a repository check. This validates that your explicit boundary parsing and typed errors meet the required coding standards.

When do I need CLI-first command boundaries in agent-based systems?

You need CLI-first command boundaries in agent-based systems when explicit failure handling and clear operational interfaces matter. This approach enforces structured boundaries that improve debugging and maintainability across agent modules.