cs-arch

Draft, refresh, and audit architecture documentation against actual codebase state.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/wildlily1021/XW_Software --skill cs-arch-wildlily1021
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cs-arch
Source: https://github.com/wildlily1021/XW_Software/tree/main/.agents/skills/cs-arch
Command: npx skills add https://github.com/wildlily1021/XW_Software --skill cs-arch-wildlily1021

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Architecture documentation drifts out of sync with code, invents nonexistent components, or contradicts design documents. This Skill maintains a current-state system map in codestable/architecture/ through three disciplined modes: backfill, update, and check. ## Core Features & Use Cases - Backfill: Write a new architecture doc for a module that exists in code but was never documented, with every structural claim anchored to file:line evidence. - Update: Refresh an existing doc based on recent code changes, updating last_reviewed and the ARCHITECTURE.md index. - Check: Run consistency audits across three sub-targets (design-internal, design-vs-code, architecture-folder-internal) and produce a severity-graded report without modifying anything. - Use Case: After merging a feature, ask for an architecture check to verify the design doc matches the implemented code, receiving a report listing each inconsistency with location, impact, and suggested fix. ## Quick Start Ask the assistant to check whether the current feature design document matches the actual code implementation.

Frequently Asked Questions about cs-arch

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

FAQPage Schema
How do I keep architecture documentation in sync with code?▼

Use the update mode to refresh an existing architecture doc based on recent code changes since its last_reviewed date. Every structural claim must anchor to a file:line location, and unverifiable statements are marked TODO rather than invented.

How to check if a design document matches the implementation?▼

Run the check mode with the design-vs-code sub-target. It verifies type consistency, behavior, write paths, boundary handling, and change scope across six categories, then outputs a report with severity levels and fix suggestions without modifying anything.

What is the difference between backfill, update, and check modes?▼

Backfill writes a new doc for code that exists but was never documented. Update refreshes an existing doc against current code. Check only audits consistency and produces a report without writing or fixing anything.

Can this skill plan future architecture or refactoring?▼

No. It only records the current state of the system. Future plans, target architectures, and refactoring proposals belong to a separate roadmap skill, keeping architecture docs free of unimplemented speculation.

Why does the check mode refuse to fix inconsistencies it finds?▼

Separating detection from repair lets users review the complete inconsistency list and decide priorities holistically. The report includes concrete fix suggestions with locations, but applying them is a deliberate follow-up action.