agentleFS
bruuuuucebruuuuuce/mana/skills/service-boundary-fit/SKILL.md

service-boundary-fit

Skill2 starsChanged 4 months agoMITView on GitHub

Checks whether a change respects service ownership, bounded context, data ownership, API/event contracts, and responsibility boundaries.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When a change touches APIs, events, domain models, shared libraries, persistence, or cross-service behavior.

    line 46
  2. Distinctive:

    Before architecture review or branch validation.

    line 47
  3. Very specific:

    Read .mana/global/service-mission.md, architecture.md, integration-map.md, domain-glossary.md, and engineering-guards.md when available.

    line 79
  4. Very specific:

    Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard) for all generated artifacts.

    line 82

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Service Boundary Fit

Purpose

Detect boundary drift before it becomes hidden coupling, duplicated ownership, unsafe data access, or ambiguous service responsibility.

When To Use It

  • When a change touches APIs, events, domain models, shared libraries, persistence, or cross-service behavior.
  • Before architecture review or branch validation.

Inputs

  • story
  • design
  • branch_diff
  • service_context
  • integration_map

Outputs

  • service_boundary_report
  • ownership_questions
  • boundary_risk_items

Execution Logic

  1. Compare proposed or actual changes with service mission, ownership, integration map, and engineering guards.
  2. Identify data ownership violations, responsibility leakage, duplicated business logic, contract coupling, and hidden dependencies.
  3. Recommend owner clarification, contract adjustment, or safer location for behavior.

Decision Rules

  • blocker: unapproved ownership violation, forbidden dependency, or protected-area change.
  • warning: ambiguous responsibility or medium-risk coupling.
  • info: documentation or contract clarity suggestion.

Failure Modes

  • Service ownership may be undocumented or split across teams.
  • Runtime dependency may be hidden in configuration.

Required Human Review

Architect confirms boundary decisions. Team Leader confirms implementation scope and ownership handoff.

Service Context Layer

Read .mana/global/service-mission.md, architecture.md, integration-map.md, domain-glossary.md, and engineering-guards.md when available.

Output Standard

Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard) for all generated artifacts. Use templates/standard-agent-skill-report.template.md when no more specific template exists.

Internal reasoning must use compact caveman mode: terse fragments, evidence-first notes, no long narrative, and no private chain-of-thought in final artifacts. Maintain a context budget: keep a short working summary with objective, base branch or PR, issue keys, workspace path, checked evidence, open hypotheses, discarded hypotheses, and next checks instead of accumulating raw transcripts, full diffs, repeated file dumps, or copied tool output.

Example Output

skill: service-boundary-fit
status: warning
summary: "New validation logic may belong to the upstream owner service."
outputs:
  - service_boundary_report
  - ownership_questions
  - boundary_risk_items
human_review_required: true

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.