agentleFS
ArcanEdge-AIArcanEdge-AI/coding-agent-playbook-codex/skills/production-architecture-review/SKILL.md

production-architecture-review

Skill3 starsChanged 3 months agoMITView on GitHub

Review architecture, module boundaries, dependency structure, framework patterns, coupling, folder organization, scalability risks, and deferred refactor needs during a production-readiness pass. Use when assessing whether the codebase structure can safely support production release and near-term maintenance.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not perform large rewrites.

    line 66
  2. Distinctive:

    Do not move many files unless necessary.

    line 67
  3. Distinctive:

    Do not introduce a new architecture style into an existing codebase without clear justification.

    line 68
  4. Distinctive:

    Do not upgrade major dependencies unless the risk requires it.

    line 69
  5. Distinctive:

    Prefer documenting future refactors over destabilizing the release.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Production Architecture Review

Core purpose

Identify architecture risks and recommend or apply only safe structural improvements.

Use this skill when

  • The production pass needs architecture review.
  • The user wants to know whether the codebase structure is production-safe.
  • The repository may have poor module boundaries, circular dependencies, dependency bloat, or risky framework patterns.

Do not use this skill when

  • The task is only code cleanup.
  • The task is only security scanning.
  • The task is only DevOps or deployment validation.
  • The user wants a full rewrite.

Check for

  • Unclear module boundaries
  • Business logic mixed into UI, routing, or controller layers
  • Circular dependencies
  • Overly coupled modules
  • Framework anti-patterns
  • Inconsistent folder structure
  • Dependency bloat
  • Deprecated packages
  • Risky package versions
  • Duplicated architectural patterns
  • Missing separation between domain, infrastructure, and presentation concerns
  • Areas likely to block future scaling or feature work

Default workflow

Resolve the task mode first: assessment-only work reports findings without source, test, or repository-document edits; authorized remediation applies only in-scope fixes. Release, production, and destructive operations retain their separate authority requirements.

  1. Inspect repository layout.
  2. Identify major application layers.
  3. Identify package manager and dependency files.
  4. Review dependency graph where tooling exists.
  5. Identify architectural seams and high-risk coupling.
  6. Classify findings as Blocker, High, Medium, or Low.
  7. Recommend deferred refactors separately from required production fixes.
  8. Implement structural fixes only within authorized remediation scope. A production blocker establishes severity, not permission to change code during an assessment.
  9. Include architecture notes in the requested deliverable; modify project documentation only when authorized.

Severity guidance

Classify as Blocker when architecture prevents building, deploying, securing, or operating a critical production flow.

Classify as High when architecture creates serious production risk, such as auth logic being bypassable due to poor boundaries or critical services being too tightly coupled to test.

Classify as Medium when refactoring would improve maintainability but is not release-blocking.

Classify as Low for minor folder, naming, or organization improvements.

Guardrails

  • Do not perform large rewrites.
  • Do not move many files unless necessary.
  • Do not introduce a new architecture style into an existing codebase without clear justification.
  • Do not upgrade major dependencies unless the risk requires it.
  • Prefer documenting future refactors over destabilizing the release.
  • Preserve working behavior.

Deliverables

Include the following in the requested assessment response or report. Update repository readiness files only when those artifacts are requested or part of authorized remediation:

  • Architecture summary
  • Dependency risk summary
  • Production-blocking architecture risks
  • Deferred refactor list
  • Safe structural fixes
  • Files changed and reasons

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.