スキル一覧に戻る
ekson73

worktree-policy

by ekson73

Multi-Agent Orchestration System - Framework for AI agent coordination, conflict prevention, and observability

0🍴 1📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: worktree-policy description: Enforce mandatory git worktree usage for multi-agent file modifications version: 1.1.0

Worktree Policy Skill

Purpose

Enforce the mandatory use of git worktrees for all file modifications in multi-agent environments. Worktrees provide complete isolation between agents working on different features.

When to Use

  • Before any file modification
  • When starting a new task
  • When another agent is already working
  • Before editing protected files

Trigger Phrases

  • "edit this file"
  • "modify the code"
  • "update the document"
  • "make changes to"

Core Rule

WORKTREE IS MANDATORY FOR ALL FILE MODIFICATIONS
Overhead: ~3 seconds | Benefit: Complete isolation

Valid Exceptions (Only 3)

  1. READ-ONLY: Analysis without file modification
  2. APPEND-ONLY: tasks.md, sessions.json (add lines only)
  3. USER EXPLICIT REQUEST: Documented in tasks.md

Worktree Commands

Create Worktree

git worktree add .worktrees/{agent-hex}-{feature} -b {tipo}/{name}
cd .worktrees/{agent-hex}-{feature}

# Example:
git worktree add .worktrees/c614-policy -b docs/policy-c614

List Worktrees

git worktree list

Remove Worktree

rm -rf .worktrees/{agent}-{feature}
git worktree prune

Naming Standards

Directory

.worktrees/{agent-short}-{feature-kebab}/

Branch

{tipo}/{escopo}-{agent-hex}
TypeUse
feature/New functionality
bugfix/Bug correction
hotfix/Urgent fix
docs/Documentation
refactor/Refactoring
chore/Maintenance

Lifecycle

CREATE → WORK → VALIDATE QA → MERGE → CLEANUP

Retention Policy

EventActionDeadline
PR mergedDelete worktree24h
Task completedDelete worktree72h
Worktree staleEvaluate and cleanImmediate
Maximum absoluteForce cleanup7 days

Enforcement

If you are editing a file without being in a worktree:

  1. STOP immediately
  2. Create worktree
  3. Continue from there

Skill based on Worktree Policy v1.1 | multi-agent-os

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です