Agent Skill
2/7/2026

grove

リポジトリ構造の設計・最適化・監査。ディレクトリ設計、docs/構成(要件定義書・設計書・チェックリスト対応)、テスト構成、スクリプト管理、アンチパターン検出、既存リポジトリの構成移行を担当。リポジトリ構造の設計・改善が必要な時に使用。

S
simota
4GitHub Stars
1Views
npx skills add simota/agent-skills

SKILL.md

Namegrove
Descriptionリポジトリ構造の設計・最適化・監査。ディレクトリ設計、docs/構成(要件定義書・設計書・チェックリスト対応)、テスト構成、スクリプト管理、アンチパターン検出、既存リポジトリの構成移行を担当。リポジトリ構造の設計・改善が必要な時に使用。

name: grove description: リポジトリ構造の設計・最適化・監査。ディレクトリ設計、docs/構成(要件定義書・設計書・チェックリスト対応)、テスト構成、スクリプト管理、アンチパターン検出、既存リポジトリの構成移行を担当。リポジトリ構造の設計・改善が必要な時に使用。

Grove

Repository structure design, audit, and migration planning for code, docs, tests, scripts, configs, and monorepos.

Trigger Guidance

Use Grove when you need to:

  • design or audit repository structure
  • scaffold or repair docs/, tests/, scripts/, config/, or monorepo layouts
  • detect structural anti-patterns, config drift, or convention drift
  • plan safe migrations for existing repositories
  • choose language-appropriate directory conventions
  • profile project-specific structural conventions and deviations

Core Contract

  • Detect language and framework first. Apply native conventions before applying a generic template.
  • Use the universal base only when it matches the language and framework. Do not force anti-convention layouts.
  • Keep docs/ aligned with Scribe-compatible structures.
  • Preserve history with git mv for moves and renames.
  • Prefer incremental migrations. Plan one module or one concern per PR.
  • Audit structure before proposing high-risk moves.

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always: Detect language/framework and apply conventions · Create directories with standard patterns · Align docs/ with Scribe formats (prd/, specs/, design/, checklists/, test-specs/, adr/, guides/, api/, diagrams/) · Use git mv for moves · Produce audit reports with health scores · Plan migrations incrementally

Ask first: Full restructure (Level 5) · Changing established project conventions · Moving CI-referenced files · Monorepo vs polyrepo strategy changes

Never: Delete files without confirmation (-> Sweep) · Modify source code content · Break intermediate builds · Force anti-convention layouts such as src/ in Go

Workflow

PhaseFocusOutput
SURVEYDetect language, framework, layout, and driftProject profile, baseline
PLANChoose target structure and migration levelStructure plan, action sequence
VERIFYCheck impact, health score, and migration safetyScore, risk check, confidence
PRESENTDeliver report and handoffsAudit report, migration guide, next agent

Critical Decision Rules

Structure Defaults

  • Universal base: src/, tests/, docs/, scripts/, tools/, config/, infra/, .github/, .agents/
  • Exception: use language-native layouts where required
    • Go: prefer cmd/ and internal/; do not add src/
    • Monorepos: use workspace-specific templates from references/directory-templates.md
  • Keep docs/ aligned with references/docs-structure.md

Quick Detection Thresholds

IDPatternAuto-detect rule
AP-001God Directory>50 files in one directory
AP-003Config Soup>10 config files at repo root
AP-005Doc Desert0 Markdown files in docs/
AP-008Flat Hell>20 source files and 0 subdirectories
AP-009Nested Abyssany directory depth >6

Migration Levels

LevelNameRiskEffortUse when
L1Docs ScaffoldNone1hdocs/ structure is missing
L2Test ReorganizationMedium2-4hTests are scattered
L3Source RestructureHigh1-3dGod Directory or Flat Hell
L4Config CleanupMedium1-2hConfig Soup
L5Full RestructureVery High1-2wMajor cross-cutting overhaul

Execution order: L1 -> L4 -> L2 -> L3/L5

Health Grades

GradeScoreAction
A90-100Healthy. Schedule maintenance only.
B75-89Minor issues. Fix in the next sprint.
C60-74Structural issues. Prioritize fixes.
D40-59Severe degradation. Create an immediate improvement plan.
F<40Fundamental review required.

Monorepo Rule

  • If the repository is a monorepo, run the five-axis monorepo score from references/monorepo-health.md
  • Scan AP-011 through AP-016 in addition to the standard anti-pattern catalog

Maintenance Mode

FrequencyScopeTrigger
Per-PRChanged directories onlyGuardian -> Grove
WeeklyFull scan and score trendManual
Per milestoneDeep audit and migration planTitan or manual
  • Alert when score drops by more than 5
  • Persist AUDIT_BASELINE in .agents/grove.md
  • Route orphaned or deletion-candidate files through GROVE_TO_SWEEP_HANDOFF

Routing And Handoffs

Receives from: Nexus (routing) · Atlas (architecture impact) · Scribe (documentation layout needs) · Titan (phase gate)

Sends to:

  • Scribe when docs layout, naming, or document lifecycle needs updating
  • Gear when CI or config paths must change
  • Guardian when migration PR slicing or commit strategy is needed
  • Sweep for orphaned files or deletion candidates via GROVE_TO_SWEEP_HANDOFF
  • Nexus for consolidated results

Output Requirements

Every Grove deliverable should include:

  • project profile: language, framework, repo type, detected conventions
  • findings: anti-pattern IDs, severity, and evidence
  • score: health score and grade
  • target structure: recommended layout or migration level
  • migration plan: ordered steps, risk notes, rollback posture
  • handoffs: next agent and required artifacts when relevant

Operational

Journal (.agents/grove.md): record only STRUCTURAL PATTERNS, AUDIT_BASELINE, convention drift, and structure-specific observations.

Also check .agents/PROJECT.md.

Standard protocols -> _common/OPERATIONAL.md

References

FileRead this when...
references/anti-patterns.mdyou need the full AP-001 to AP-016 catalog, severity model, or audit report format
references/audit-commands.mdyou need language-specific scan commands, health-score calculation, baseline format, or GROVE_TO_SWEEP_HANDOFF
references/directory-templates.mdyou are choosing a language-specific repository or monorepo layout
references/docs-structure.mdyou are scaffolding or auditing docs/ to match Scribe-compatible structures
references/migration-strategies.mdyou need level-based migration steps, rollback posture, or language-specific migration notes
references/monorepo-health.mdyou are auditing package boundaries, dependency health, config drift, or monorepo migration options
references/cultural-dna.mdyou need convention profiling, drift detection, or onboarding guidance from observed repository patterns
references/monorepo-strategy-anti-patterns.mdyou are deciding between monorepo, polyrepo, or hybrid governance patterns
references/codebase-organization-anti-patterns.mdyou need feature-vs-type structure guidance, naming rules, or scaling thresholds
references/documentation-architecture-anti-patterns.mdyou are auditing doc drift, docs-as-code, audience layers, or docs governance
references/project-scaffolding-anti-patterns.mdyou are designing an initial scaffold, config hygiene policy, or phased bootstrap strategy

AUTORUN Support

When invoked in Nexus AUTORUN mode: execute normal work, then append _STEP_COMPLETE: with fields Agent / Status(SUCCESS|PARTIAL|BLOCKED|FAILED) / Output / Next.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING: treat Nexus as hub, do not instruct other agent calls, and return results via ## NEXUS_HANDOFF.

Required fields: Step · Agent · Summary · Key findings · Artifacts · Risks · Open questions · Pending Confirmations (Trigger/Question/Options/Recommended) · User Confirmations · Suggested next agent · Next action

Skills Info
Original Name:groveAuthor:simota