agentleFS
tuana-vntuana-vn/system-reverse-engineer/.github/skills/design-artifact-decomposition/SKILL.md

design-artifact-decomposition

Skill0 starsChanged 2 months agoMITView on GitHub

Decompose a verified technical design into a complete, source-traceable registry of implementation-relevant design artifacts and dependencies. Use after TDD verification and before detailed design or WBS generation.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 16 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Do not jump directly from a TDD to a task list.

    line 11
  2. Distinctive:

    test design if already available

    line 31
  3. Distinctive:

    Use the smallest meaningful technology-neutral type:

    line 35
  4. Distinctive:

    Do not force Java/REST concepts onto non-Java/non-REST systems.

    line 54
  5. Distinctive:

    Every material design decision must be represented.

    line 62
  6. Distinctive:

    Do not create artifacts merely because a file exists.

    line 72
  7. Distinctive:

    Do not merge unrelated responsibilities only to reduce artifact count.

    line 73
  8. Distinctive:

    Before finalizing artifact boundaries, enumerate all implementation-significant PROPOSED units from the VERIFIED TDD.

    line 78
  9. Distinctive:

    If any significant proposed unit has no valid explicit owner:

    line 104
  10. Distinctive:

    Do not proceed to DD generation.

    line 108
  11. Distinctive:

    If architectural circularity is intentional, explain it rather than hiding it.

    line 151
  12. Distinctive:

    No verified TDD decision may be orphaned.

    line 190
  13. Distinctive:

    every implementation-significant proposed unit has exactly one owner

    line 199
  14. Distinctive:

    every subordinate unit is explicitly named under the owning artifact

    line 200
  15. Distinctive:

    no proposed unit is owned only by implication

    line 201
  16. Distinctive:

    Use the active workflow-declared registry output path.

    line 231
  17. Very specific:

    Do not emit ARTIFACT_REGISTRY_READY without these tables.

    line 272

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

Design Artifact Decomposition

Purpose

Do not jump directly from a TDD to a task list.

First convert the TDD into an explicit registry of design artifacts:

Requirement
→ Verified Gap
→ Verified TDD Decision
→ Design Artifact Registry

The registry is the source of truth for detailed-design coverage.

Inputs

  • authoritative requirement
  • verified gap analysis
  • VERIFIED technical design
  • TDD verification report
  • current repository
  • test design if already available

Artifact Types

Use the smallest meaningful technology-neutral type:

  • CLASS / INTERFACE
  • MODULE / COMPONENT
  • API CONTRACT
  • DATA MODEL
  • CONFIGURATION
  • PERSISTENCE
  • INTEGRATION
  • RUNTIME FLOW
  • STATE MACHINE
  • ERROR HANDLING
  • SECURITY
  • OBSERVABILITY / AUDIT
  • TEST SUPPORT
  • MIGRATION / COMPATIBILITY
  • DOCUMENTATION
  • OTHER

Do not force Java/REST concepts onto non-Java/non-REST systems.

1. Extract TDD Decisions

Assign stable IDs:

TD-001, TD-002, ...

Every material design decision must be represented.

2. Derive Artifacts

Assign:

DA-001, DA-002, ...

Each artifact must represent one cohesive implementation/design responsibility.

Do not create artifacts merely because a file exists. Do not merge unrelated responsibilities only to reduce artifact count.

2A. Proposed Unit Ownership Closure

Before finalizing artifact boundaries, enumerate all implementation-significant PROPOSED units from the VERIFIED TDD.

For each unit assign exactly one ownership disposition:

DEDICATED_ARTIFACT
or
SUBORDINATE_TO:<ART-ID>

SUBORDINATE_TO is valid only when the owning artifact responsibility explicitly includes the subordinate unit. Do not hide a distinct implementation responsibility inside an unrelated artifact merely to avoid another ART ID.

Create:

Proposed UnitTDD EvidenceResponsibilityOwnership DispositionOwning ART-IDWhy Ownership Is ValidCovered?

Required threshold:

PROPOSED_UNIT_OWNERSHIP_COVERAGE = 100%

If any significant proposed unit has no valid explicit owner:

ARTIFACT_DECOMPOSITION_INCOMPLETE

Do not proceed to DD generation.

Boundary Rule

Artifact decomposition is responsibility-based, not "one class = one artifact".

A dedicated artifact is warranted when a unit has materially independent responsibility, contract, lifecycle, dependency boundary, failure semantics, state/config ownership, or verification obligation.

A subordinate unit is acceptable only when that ownership is explicit.

3. Existing vs Proposed

For each artifact classify:

  • EXISTING_MODIFIED
  • PROPOSED_NEW
  • EXISTING_UNCHANGED_REFERENCE

For existing artifacts verify source anchors. For proposed artifacts state the proposed ownership/location without pretending it exists.

4. Dependency Graph

Record dependencies:

DA-A requires DA-B

Classify dependency:

  • API/CONTRACT
  • DATA
  • RUNTIME
  • CONFIGURATION
  • BUILD
  • TEST
  • MIGRATION
  • ORDERING

Detect obvious circular dependency in the proposed implementation order. If architectural circularity is intentional, explain it rather than hiding it.

5. Design Artifact Registry

For every artifact, the registry must explicitly record its owned proposed units, including subordinate units.

Recommended field:

Owned Proposed Units:
- <primary unit>
- <explicit subordinate unit>

The registry is the canonical owner map used by DD, WBS, and later verification.

Required table:

Artifact IDNameTypeRequirement IDsGap IDsTDD Decision IDsExisting/ProposedSource Anchor / Proposed LocationDependenciesDD StatusDD VerificationNotes

Initial statuses:

DD Status = NOT_STARTED
DD Verification = NOT_VERIFIED

6. Coverage Matrix

Create:

Requirement IDGap IDTDD Decision IDArtifact IDsCovered?Evidence

No verified TDD decision may be orphaned.

7. Completion Gate

Proposed Unit Ownership Completion

Before ARTIFACT_REGISTRY_READY:

  • every implementation-significant proposed unit has exactly one owner
  • every subordinate unit is explicitly named under the owning artifact
  • no proposed unit is owned only by implication
  • ownership coverage = 100%

Otherwise:

ARTIFACT_DECOMPOSITION_INCOMPLETE

Before ARTIFACT_REGISTRY_READY:

[ ] every material verified TDD decision has artifact coverage
[ ] every artifact maps backward to TDD/requirement/gap
[ ] existing source anchors are verified where applicable
[ ] proposed artifacts are explicitly marked
[ ] dependencies are recorded
[ ] no obvious implementation-relevant TDD decision is hidden in prose
[ ] no source-resolvable HIGH/CRITICAL decomposition ambiguity remains

Statuses:

  • ARTIFACT_REGISTRY_READY
  • ARTIFACT_REGISTRY_PARTIAL
  • ARTIFACT_REGISTRY_BLOCKED
  • ARTIFACT_DECOMPOSITION_INCOMPLETE

Output

Use the active workflow-declared registry output path. Do not invent or reuse a legacy shared registry filename.

<!-- workflow-status-contract:start -->
emitted_statuses:
  - ARTIFACT_REGISTRY_READY
  - ARTIFACT_REGISTRY_PARTIAL
  - ARTIFACT_REGISTRY_BLOCKED
  - ARTIFACT_DECOMPOSITION_INCOMPLETE
<!-- workflow-status-contract:end -->

4.0 Registry Evidence Contract

ARTIFACT_REGISTRY_READY is invalid unless the artifact contains BOTH:

Proposed Unit Inventory

Proposed UnitTypeTDD EvidenceImplementation-Significant?Reason

This inventory is unit-centric, not artifact-centric.

Proposed Unit Ownership Closure

Proposed UnitOwnership DispositionOwning ART-IDExplicit Responsibility TextCoverage

Required:

inventory rows >= 1 when TDD proposes implementation units
ownership rows == inventory rows
coverage = 100%
unowned units = 0

An artifact list that merely maps ART IDs to themselves is NOT an ownership closure.

Do not emit ARTIFACT_REGISTRY_READY without these tables.

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.