agentleFS
smileynetsmileynet/code-spice/skills/code-scope-boundaries/SKILL.md

code-scope-boundaries

Skill0 starsChanged 9 months agoMITView on GitHub

Project-level scope analysis for evaluating whether a project has exceeded its useful boundaries, needs splitting, or is experiencing scope creep. Use when evaluating project structure, considering whether to split a project, assessing feature belonging, or when projects feel too large or unfocused during brainstorm, scope, or architecture review. Covers cohesion test at project level, feature belonging assessment, scope creep detection, split-vs-keep decision framework, and safe splitting patterns.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Run this during architecture review or when scope feels unclear:

    line 10

≈ “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

Code Scope Boundaries

Scope Health Checklist

Run this during architecture review or when scope feels unclear:

  • Single mission — Can you describe the project's purpose in one sentence without "and"?
  • Cohesive audience — Do all features serve the same primary user group?
  • Aligned cadence — Do features change at roughly the same rate for the same reasons?
  • Shared deployment — Do all features benefit from deploying together?
  • Bounded utils — Is utils/, helpers/, or common/ smaller than any domain folder?
  • Onboarding stable — Can a new developer understand the project's scope in their first week?
  • No orphan features — Does every feature have an active user or measured usage data?

If 3+ items fail: The project may have outgrown its boundaries. Run the split-vs-keep framework below.

Feature Belonging Quick Test

QuestionBelongsDoesn't Belong
Who uses it?Same users as existing featuresDifferent user group entirely
When does it change?Same triggers as the core productIndependent triggers, different release cycle
How is it deployed?Same deployment artifact and cadenceNeeds separate scaling, uptime, or infrastructure
What data does it use?Same domain entitiesDifferent data domain with minimal overlap
Who maintains it?Same team with shared contextDifferent team or skill set required

If 3+ answers land in "Doesn't Belong": The feature is a candidate for extraction.

The One-Sentence Test

Describe your project's purpose in a single sentence. If the sentence contains "and" connecting unrelated capabilities, that conjunction is a potential split point. Related capabilities often belong together — the question is whether they share users, data, and deployment needs.

The Boiling Frog Pattern

Scope creep follows a predictable progression:

  1. Phase 1: Core product solves one problem well
  2. Phase 2: Adjacent features added ("natural extensions")
  3. Phase 3: Unrelated features added ("while we're at it")
  4. Phase 4: Features serve different users with different needs
  5. Phase 5: The project has become a platform — intentional or not

Each phase transition feels small. Monitor for transitions and make conscious decisions about whether to accept them.

Scope Creep Measurement

MetricHealthyWarningCritical
Utils/helpers ratio<10% of codebase10-25%>25% — domain boundaries unclear
Cross-feature dependenciesRare, well-defined interfacesGrowing, some circularPervasive — features can't change independently
New developer productivityProductive in daysProductive in weeksMonths before meaningful contributions
Unrelated issue couplingIssues affect one featureIssues span 2-3 featuresMost issues touch 4+ features

Split-vs-Keep Decision Tree

Are different teams blocked by shared codebase?
├── Yes → Split along team boundaries (Conway's Law)
└── No
    Does the project need different scaling for different features?
    ├── Yes → Extract the differently-scaled component
    └── No
        Are cascading failures affecting unrelated features?
        ├── Yes → Split to isolate failure domains
        └── No
            Is onboarding time growing beyond acceptable?
            ├── Yes → Consider splitting, but check if better
            │         internal organization helps first
            └── No → Don't split. Improve internal boundaries instead.

"Should I Split This Project?"

Your situationRecommendation
One team, features cohesive, shared dataDon't split — improve internal organization
One team, features diverging, shared deploymentInternal boundaries — modules or packages, not projects
Multiple teams, shared codebase frictionSplit along team boundaries — Conway's Law
Independent scaling needsExtract the bottleneck — Strangler Fig pattern
Cascading failures across featuresIsolate failure domains — split for resilience
"It's getting big" but no measured painDon't split — size alone is not a reason

"Is This Scope Creep or Natural Growth?"

IndicatorNatural GrowthScope Creep
User requestFrom primary audienceFrom a different user group
Domain fitSame business domainAdjacent or unrelated domain
Data modelUses existing entitiesRequires new, unrelated entities
Team expertiseExisting team can build itRequires different skill set
DeploymentShips with existing cadenceNeeds different infrastructure

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.