Skip to content
Agentmart
Submit a tool

improve-codebase-architecture

Find architectural friction in a change set, evaluate module depth and test boundaries, and apply worthwhile scoped refactors in a pipeline architecture phase.

Skill by CraigThomasParsons

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/craigthomasparsons-improve-codebase-architecture

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Find architectural friction in a change set, evaluate module depth and test boundaries, and apply worthwhile scoped refactors in a pipeline architecture phase. Also supports standalone architecture exploration.

Use cases: testing, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/improve-codebase-architecture

What's inside

Skill name
improve-codebase-architecture
Description
Find architectural friction in a change set, evaluate module depth and test boundaries, and apply worthwhile scoped refactors in a pipeline architecture phase. Also supports standalone architecture exploration.
License
MIT
Instructions
14 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • openai.yaml · agents/
  • HTML-REPORT.md · references/

SKILL.md (first lines)

# Improve codebase architecture

Read CONTEXT.md and applicable ADRs before suggesting changes; preserve the domain vocabulary and existing decisions.

Use this vocabulary: a **module** hides implementation behind an **interface**; **depth** is useful hidden complexity relative to interface complexity; a **seam** is an observable test boundary; an **adapter** connects external infrastructure; **locality** keeps related concepts together; **leverage** is the amount of useful behavior improved by a small interface change. Avoid extracting functions solely to expose internals to tests. One adapter often represents a hypothetical seam; multiple real consumers provide stronger evidence for abstraction.

1. Scope the scan to the issue's change set and closely affected modules. For standalone exploration, use the user's direction or recently changing areas. Identify shallow interfaces, knowledge spread across files, leaking boundaries, and behavior that is hard to test through the public interface.
2. Apply the deletion test: would removing the proposed abstraction concentrate complexity, or merely move it? Prefer designs that hide meaningful complexity and keep related behavior together. Respect ADRs; don't implement a conflicting design without an explicit decision.
3. For each candidate record files, observed problem, proposed change, public interface/test effects, and strength (Strong / Worth exploring / Speculative). Separate measured friction from hypothetical future needs.
4. In slice-pipeline ARCHITECTURE mode, apply the worthwhile candidates that fit the issue's scope. Keep behavior unchanged, validate it, commit and push each refactor. Record too-large candidates with a rationale and assigned follow-up issue. Do not stop at an assessment and do not enter REVIEW in this context. No candidate is a valid result when the current design needs no change; do not manufacture edits.
5. In standalone exploration mode, present candidate before/after diagrams when useful and ask which substantial direction to explore before implementing a new design. Use a temporary HTML report only when it helps the user compare candidates; [references/HTML-REPORT.md](references/HTML-REPORT.md) provides the original report patterns. Do not automatically open a browser from an unattended worker. Record newly agreed domain terms and lasting decisions in the repository's domain/ADR documents within the authorized scope.

Pipeline packets already define the scope; no repeated design-selection interview is needed for ordinary behavior-preserving improvements. Decisions that change product behavior or approved architecture remain the operator's.

From CraigThomasParsons/TheGiteaCodeFactory, MIT.

More from CraigThomasParsons/TheGiteaCodeFactory

Signals

Stars
1
Forks
0
Open issues
3
Last commit (this folder)
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from CraigThomasParsons

Cite this page

improve-codebase-architecture skill. Agent Mart. https://agentmart.dev/skills/craigthomasparsons-improve-codebase-architecture (last updated 2026-10-24)