Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/baek-labs/hames/source-command-locknpx skills add baek-labs/hames --skill source-command-lockgit clone --depth 1 https://github.com/baek-labs/hamesWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00014 | $0.00998 |
| Opus 5 | $0.00007 | $0.00499 |
| Sonnet 5 | $0.00003 | $0.00200 |
| Haiku 4.5 | $0.00001 | $0.00100 |
Grade A, and why
source-command-lock scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
source-command-lock
Use this skill when the user asks to run the migrated source command lock.
Command Template
/lock
사용법: /lock <workspace>
사용자는 workspace만 고른다. 세션 키는 Hames launcher/app runtime이 자동 주입한다 (HAMES_SESSION_ID, CODEX_THREAD_ID 등).
같은 모델을 여러 창/세션으로 띄워도 각 세션의 lock은 독립적으로 적용된다.
유효한 워크스페이스 (사용자 정의):
- Tier 1 (entry 파일 보유):
workspaces/<NAME>/아래 자체 CLAUDE.md/AGENTS.md를 둔 정식 워크스페이스. 사용자 본인의 워크스페이스 이름을 직접 사용. - Tier 2 (lock-only, entry 파일 없음): 단순 편집 범위 제한만 필요한 디렉토리. entry 파일 없이도 lock 가능.
범위 선택 패턴:
- 컨테이너 전체 lock: 상위 디렉토리 이름 — 하위 자유 이동
- 개별 프로젝트만 lock: 정확한 디렉토리 이름 — 형제 디렉토리 차단
실행 순서
/lock 실행 시 .hames_start_codex.md / .hames_start_gemini.md는 사용자가 handoff/resume 연속성을 명시적으로 요청했거나 해당 부트스트랩에 Session lock: ON이 있을 때만 읽고 적용한다. Session lock: OFF 부트스트랩은 lock 명령을 지연하거나 덮어쓸 수 없다.
Step 1 — Lock 파일 갱신
PowerShell로 lock helper를 실행합니다. 이 helper가 .claude/.workspace_lock 안의 현재 세션 항목만 갱신합니다.
powershell -ExecutionPolicy Bypass -File arsenal/set_workspace_lock.ps1 -Workspace <입력값>
예: /lock MyDomain → 현재 HAMES_SESSION_ID에만 MyDomain lock 적용
.claude/.workspace_lock은 세션별 map을 사용한다. 기존 전역 lock 형식도 하위 호환으로 유지된다.
Step 2 — 워크스페이스 컨텍스트 로드
해당 워크스페이스의 entry 파일을 읽어 로컬 규칙 적용. 환경별 우선순위:
- Codex 앱 / Codex CLI:
AGENTS.md우선, 없으면CLAUDE.md - Claude Code / Cursor:
CLAUDE.md우선, 없으면AGENTS.md - Gemini CLI / Cursor (Gemini 모델):
CLAUDE.md또는AGENTS.md중 존재하는 것 - entry 파일 없는 Tier 2 워크스페이스: 이 단계를 스킵하고 lock-only 모드로 진행
| 워크스페이스 종류 | entry 경로 |
|---|---|
| 일반 워크스페이스 | workspaces/<NAME>/CLAUDE.md (또는 AGENTS.md) |
| 격리 도메인 (advanced) | <DomainRoot>/CLAUDE.md + <DomainRoot>/AGENTS.md (선택) |
| Lock-only 디렉토리 | (없음 — Step 2 스킵) |
Step 3 — 격리 도메인 전용 준비 (해당 시)
격리 도메인은 자체 에이전트 팀과 hook을 가진다. Lock 시 해당 도메인의 <Root>/.claude/agents/ 디렉토리를 확인. 패턴은 docs/04_workspace_model.md 참조.
Step 4 — 상태 보고
[WORKSPACE LOCK] Active: <workspace> | Lock: ON
쓰기 차단 범위: 현재 세션에서 <workspace> 외부 모든 경로
읽기: 전체 허용 (Read/Glob/Grep 무조건 통과)
SYSTEM_ADMIN 경로 (arsenal, .claude, .codex, .gemini, .agents): 항상 허용
해제: "고정 해제" 입력
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 88 lines · 14 tokens per session scan A d5ef9d34845d
source-command-lock is a skill published in the GitHub repository baek-labs/hames (5 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 998 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
代码审查员
专业代码审查专家,提供建设性、可操作的反馈,聚焦正确性、可维护性、安全性和性能,而非代码风格偏好。.
release-gate-loop
发版前自动验证闸门——V 验证 + F 修复循环(verdict FAIL → F 改代码 → 跑 audit → V 重验),最大 3 轮直到 PASS。纯只读验证 + 最小修复。.
fresh-eyes-loop
发布后独立质量循环——A/B 双盲 12 视角 fresh-eyes 审查 + 修复 + 验证,每轮新 session 保证零上下文,连续 2 轮无 P0/P1 即停。.
sofagent-fde
前线部署与知识工程专家。梳理企业业务流、识别 AI 节点、构建 ontology 本体数据、交付离场。 部署完成后转为持续优化模式(sustain),自动读 audit 报告趋势生成优化报告。 不写应用代码——把企业业务规则、组织架构、系统边界转译成 sofagent 的数据层和约束层。.
sofagent-audit
收到用户任务后,不要自己执行——用 Bash tool 把任务交给 DeepAgents 编排引擎:.
sofagent
FDE Skill——帮 FDE(前线部署工程师)更好完成企业 AI 落地的方法论 Skill。约束 Agent 行为、审计每次变更、沉淀经验。 底层实现叫约束层——一个层四种能力:注入·审计·回溯·进化。FORGE 自迭代工具链是内部开发工具。 内置持续优化模式(sustain),自动读 audit 报告趋势生成优化报告。.