From Che Armstrong Skills
Verify architecture and implementation follow documented best practices, project patterns, and user rules. Check against project documentation, ensure no assumptions are made, and verify implementation matches documented patterns. Use when reviewing code, implementing features, making architectural decisions, or before committing changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/chearmstrong-skills:architecture-compliance-checkThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Check whether a change still belongs to the architecture the repository has actually documented and implemented.
Check whether a change still belongs to the architecture the repository has actually documented and implemented.
Core principle: architecture compliance is not "does this look sensible?" It is "can I point to the document, existing implementation, or user rule that permits this shape?"
Mandatory checks:
Use especially when:
Use the smallest branch that answers the architectural question.
| Situation | Required evidence | Action |
|---|---|---|
| Change follows an existing pattern | Existing implementation plus matching docs or tests | Reuse the pattern; cite the concrete file or doc section in the review/summary. |
| Change introduces a new pattern | ADR, design doc, issue/spec, or explicit user instruction | Stop if none exists. Add documentation or ask before implementing. |
| Change crosses a module or service boundary | Boundary contract, public interface, schema, event shape, or dependency direction | Verify both sides. Do not infer compatibility from one caller. |
| Change touches DynamoDB, retries, queues, or idempotency | User guardrails plus implementation tests | Treat missing pagination/idempotency tests as a compliance gap, not just a test gap. |
| Change touches CDK/IaC | Existing stack organisation, logical IDs, cdk diff expectations, security rules | Flag replacement, IAM, encryption, retention, and alarm changes explicitly. |
| Change relies on external API behaviour | Versioned dependency files plus official docs, Context7, AWS docs, or stable vendor docs | Prefer pinned-version evidence over generic latest examples. |
| Docs and code disagree | Running code, tests, config, and deployment artefacts | Do not choose the convenient source. State the conflict and fix docs or code deliberately. |
These are the compliance bugs that often look like harmless cleanup:
Check these traps before approving or finishing work:
LastEvaluatedKey exactly; keep PK/SK immutable; treat GSIs as projections; use Query rather than Scan in hot paths; make retryable writes idempotent.cdk diff output before deploy/PR when infrastructure changed.SKILL.md as the source of truth; use only required frontmatter unless optional spec fields add value; keep product-specific files optional.When reporting compliance, include:
Never:
Works with:
systematic-debugging - Verify root cause before fixingverification-before-completion - Verify compliance before claiming donereceiving-code-review - Verify feedback against documentationrequesting-code-review - Include compliance check in reviewCompliance means the change has traceable evidence. If the evidence is missing, the correct result is "undocumented", not "probably fine".
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub chearmstrong/skills --plugin chearmstrong-skills