discipline-refactor-target-repository-structure
Sub-skill of discipline-refactor: Target Repository Structure.
Best use case
discipline-refactor-target-repository-structure is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of discipline-refactor: Target Repository Structure.
Teams using discipline-refactor-target-repository-structure should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/target-repository-structure/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How discipline-refactor-target-repository-structure Compares
| Feature / Agent | discipline-refactor-target-repository-structure | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of discipline-refactor: Target Repository Structure.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# Target Repository Structure ## Target Repository Structure ``` <repo>/ ├── src/<package_name>/ │ └── modules/ │ ├── _core/ # Shared utilities │ ├── <discipline-1>/ # Domain module │ │ ├── __init__.py │ │ ├── models.py │ │ ├── services.py │ │ └── utils.py │ └── <discipline-2>/ │ ├── tests/ │ └── modules/ │ ├── _core/ │ ├── <discipline-1>/ │ └── <discipline-2>/ │ ├── docs/ │ └── modules/ │ ├── _core/ │ ├── <discipline-1>/ │ └── <discipline-2>/ │ ├── specs/ │ └── modules/ │ ├── _core/ │ ├── <discipline-1>/ │ └── <discipline-2>/ │ ├── data/ │ └── modules/ │ ├── <discipline-1>/ │ └── <discipline-2>/ │ ├── logs/ │ └── modules/ │ ├── <discipline-1>/ │ └── <discipline-2>/ │ ├── .Codex/ │ ├── skills/ │ │ ├── _core/ │ │ ├── <discipline-1>/ │ │ └── <discipline-2>/ │ └── AGENTS.md │ └── pyproject.toml / package.json ``` ---
Related Skills
repo-structure
Canonical source layout, test mirroring, root cleanliness, gitignore, docs classification, and committed artifact rules for all workspace-hub tier-1 repos. Consult before creating directories or files in any submodule.
github-issue-structure-for-personal-finance-tracking
Pattern for organizing financial analysis work across multiple repos (data/config vs. logic separation)
targeted-artifact-commit-verification
Verify whether the exact files from a just-completed task are still uncommitted before creating another commit, especially in dirty repos with unrelated churn.
roadmap-issue-reopen-retarget-balance
Reopen existing roadmap anchors, close replacement epics, retarget new child issues, and add sequencing/de-dup comments so GitHub roadmap work preserves continuity and execution quality.
repo-cleanup-structure-section-updates
Sub-skill of repo-cleanup: Structure Section Updates (+1).
module-based-refactor
Reorganize a repository from flat structure to a module-based 5-layer architecture (src/tests/specs/docs/examples) while preserving git history. Use when restructuring a codebase into modules, migrating import paths, cleaning up hidden folders, consolidating duplicate directories, removing root-level artifacts, or archiving completed plan files. Capabilities: parallel agent spawn strategy, hidden-folder consolidation patterns, benchmark fixture separation, 4-phase atomic commit workflow.
discipline-refactor-verification-checklist
Sub-skill of discipline-refactor: Verification Checklist.
discipline-refactor-standard-folders-module-structure
Sub-skill of discipline-refactor: Standard Folders → Module Structure (+1).
discipline-refactor-rollback
Sub-skill of discipline-refactor: Rollback.
discipline-refactor-phase-4-validation
Sub-skill of discipline-refactor: Phase 4: Validation.
discipline-refactor-phase-3-execution
Sub-skill of discipline-refactor: Phase 3: Execution.
discipline-refactor-phase-2-planning
Sub-skill of discipline-refactor: Phase 2: Planning.