소스 정보
- 저장소
- Dev-Toolbelt/dev-team-agents
- 최근 소스 활동
- 2026년 7월 25일 22:28
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill current-context명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | current-context |
| description | Detect branch, worktree session, and staged changes for devteam. |
Before executing any devteam command, identify the working context so that analysis and actions stay scoped to the right branch and files.
Run these commands in order:
| Command | Purpose |
|---|---|
git branch --show-current | Identify the active branch |
git diff --name-only HEAD | List locally modified files |
git diff --name-only main...HEAD | List all files changed in this branch vs main |
Check .dev-team-agents/.worktree-session (if present) | Identify active worktree and its branch |
Restrict all analysis and actions to files and changes within the detected context. Do NOT scan or act on the full codebase unless the task explicitly requests a broader scope.
If .dev-team-agents/.worktree-session exists, read it before proceeding:
worktree=no — operating on main working tree; no worktree isolation activeworktree=yes branch=<b> — operating inside a worktree on branch <b>; load skills/shared/worktree/SKILL.md and follow its isolation protocolIf the file does not exist, assume the main working tree and proceed normally.
Use git status --porcelain to distinguish:
M (staged modifications) — already added to the index M (unstaged modifications) — modified but not staged?? (untracked files) — new files not yet trackedThis matters when the task involves committing or reviewing only staged work.
After running the context commands, check if the branch is behind the remote main:
git fetch --quiet origin 2>/dev/null || true
BEHIND=$(git rev-list --count HEAD..origin/main 2>/dev/null || echo 0)
If BEHIND is greater than 7:
git rebase origin/main and re-run the context detection.If git fetch fails (no network), skip the check silently and proceed.
Running 4 git commands on every invocation adds latency. Use a short-lived cache stored at .dev-team-agents/user-data/.context-cache.json:
{ "ts": <unix-epoch-seconds>, "branch": "...", "changed": N, "worktree": "yes|no" }
Read the cache first:
CACHE=".dev-team-agents/user-data/.context-cache.json"
NOW=$(date +%s)
if [ -f "$CACHE" ]; then
CURRENT_BRANCH=$(git branch --show-current 2>/dev/null || echo "")
cached_branch=$(python3 -c "import json,sys; d=json.load(open('$CACHE')); print(d.get('branch',''))" 2>/dev/null || echo "")
if [ -n "$CURRENT_BRANCH" ] && [ -n "$cached_branch" ] && [ "$cached_branch" != "$CURRENT_BRANCH" ]; then
# Branch changed — invalidate cache
rm -f "$CACHE"
fi
fi
if [ -f "$CACHE" ]; then
cached_ts=$(python3 -c "import json,sys; print(json.load(open('$CACHE'))['ts'])" 2>/dev/null || echo 0)
age=$(( NOW - cached_ts ))
[ "$age" -lt 1800 ] && echo "Context (cached): $(cat $CACHE)" && exit 0
fi
Write the cache after detection:
python3 -c "
import json, time
json.dump({'ts': int(time.time()), 'branch': '$BRANCH', 'changed': $CHANGED, 'worktree': '$WORKTREE'}, open('$CACHE','w'))
" 2>/dev/null || true
Cache TTL is 1800 seconds (30 minutes). On cache miss, branch change, or stale cache, run the full detection flow and write a fresh cache entry. If python3 is unavailable, skip caching silently and always run the full detection.
After running the commands, produce a one-line context header before any action:
Context: branch=<branch> | worktree=<yes|no> | changed=<N files>
This makes the working scope explicit to any subsequent agent or step.
SOC 직업 분류 기준