source-command-index

A diagnostic tool for checking the quality and index consistency of workspace content. It reviews metadata, footers, duplicate files, links, and, in some workspaces, missing or archived files.

In plain words
What is it for?
Use it to audit workspace notes and produce a JSON report for later manual fixes.
Why use it?
It helps find incomplete, inconsistent, duplicated, or unlisted content without changing anything automatically.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/baek-labs/hames/source-command-index
Any agent
npx skills add baek-labs/hames --skill source-command-index
Clone the repo
git clone --depth 1 https://github.com/baek-labs/hames

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,050 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.01050
Opus 5 $0.00014 $0.00525
Sonnet 5 $0.00005 $0.00210
Haiku 4.5 $0.00003 $0.00105

Measured 2d ago against content hash 771dc92dd6f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

source-command-index 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.

.codex/skills/source-command-index/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

source-command-index

Use this skill when the user asks to run the migrated source command index.

Command Template

/index

사용법: /index / /index <target> (target 은 alias 또는 경로)

본 커맨드의 정체

/index진단 전용 도구다. 자동 수정은 하지 않는다. 스크립트는 JSON 리포트만 출력하며, 모든 수정은 별도 단계로 CEO 승인을 거쳐 수동 적용된다.

HamesSystem 규칙 구조 점검은 /doctor 담당.

진단 항목 (스키마: index-2026-05-08)

공통 (모든 tier):

  • 프론트매터 완결성 (Related / Topic / Type / tags) + 필드 순서
  • 값 일관성 인벤토리
  • 푸터 (## 관련노트) 존재 여부
  • 중복 의심 파일 (날짜 접두사 제거 후 동일 파일명)
  • 위키링크 검증

추가 (tier=deep 워크스페이스만):

  • 인덱스 미등재 고아 파일 / 임시 파일 / 아카이브 후보 (60일+) / _Index.md 누락

Tier 결정 규칙

  • deep: workspaces/Investment, workspaces/Business, workspaces/Company, workspaces/Hobby. 그리고 워크스페이스 루트에 _Index.md 가 있는 워크스페이스(예: ).
  • light: 그 외. frontmatter / footer / duplicates / wikilinks / value_inventory 만 검사.

각 워크스페이스 리포트의 tier 필드에 적용 모드가 표기된다.


Step 1 — 스캔 실행

인수 없음 또는 --all → 전체 진단

python arsenal/manager.py
# 또는
python arsenal/manager.py --all

.claude/workspace_paths.json 의 등록된 모든 워크스페이스(존재하는 것만) + arsenal/ 도구 레지스트리(arsenal_registry_audit) 점검. 중첩된 child 워크스페이스(예: nested-project/sub-app)는 부모 스캔에서 제외하여 중복 집계 방지.

특정 워크스페이스 지정

python arsenal/manager.py <target>

target 으로 허용되는 형태:

  • alias (대소문자 무시): 워크스페이스 이름의 다양한 표기
  • 상대 경로: workspaces/Company, nested-project/sub-app
  • 절대 경로

Step 2 — 에이전트 분석 (Semantic Analysis)

출력된 **HAMES SYSTEM AUDIT REPORT (JSON)**를 분석:

항목 JSON 필드 비고
프론트매터 이슈 missing_frontmatter 필드 누락 + 순서 오류
푸터 누락 footer_missing ## 관련노트 미존재
값 인벤토리 value_inventory 비일관 값 탐지용 전체 현황
고아 파일 orphaned_files _Index.md 미등재 (deep only)
임시 파일 temp_files 즉시 삭제 제안 가능 (deep only)
아카이브 후보 archive_candidates CEO 승인 후 이동 (deep only)
인덱스 누락 missing_indexes 워크스페이스에 _Index.md 없음 (deep only)
중복 의심 potential_duplicates CEO 단일화/삭제 결재 요청
링크 검증 links_found_for_agent_verification 에이전트가 경로·워크스페이스 직접 확인

Read the full file on GitHub · 100 lines

Changes

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.

  1. 2d ago First seen · 100 lines · 27 tokens per session scan A 771dc92dd6f1

Subscribe to this mod's changes

source-command-index is a skill published in the GitHub repository baek-labs/hames (5 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 1,050 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.

Related

Other skills, from other repositories

代码审查员

专业代码审查专家,提供建设性、可操作的反馈,聚焦正确性、可维护性、安全性和性能,而非代码风格偏好。.

KongFangXun/sofagent · 40 tokens

release-gate-loop

发版前自动验证闸门——V 验证 + F 修复循环(verdict FAIL → F 改代码 → 跑 audit → V 重验),最大 3 轮直到 PASS。纯只读验证 + 最小修复。.

KongFangXun/sofagent · 59 tokens

fresh-eyes-loop

发布后独立质量循环——A/B 双盲 12 视角 fresh-eyes 审查 + 修复 + 验证,每轮新 session 保证零上下文,连续 2 轮无 P0/P1 即停。.

KongFangXun/sofagent · 58 tokens

sofagent-fde

前线部署与知识工程专家。梳理企业业务流、识别 AI 节点、构建 ontology 本体数据、交付离场。 部署完成后转为持续优化模式(sustain),自动读 audit 报告趋势生成优化报告。 不写应用代码——把企业业务规则、组织架构、系统边界转译成 sofagent 的数据层和约束层。.

KongFangXun/sofagent · 93 tokens

sofagent-audit

收到用户任务后,不要自己执行——用 Bash tool 把任务交给 DeepAgents 编排引擎:.

KongFangXun/sofagent · 43 tokens

sofagent

FDE Skill——帮 FDE(前线部署工程师)更好完成企业 AI 落地的方法论 Skill。约束 Agent 行为、审计每次变更、沉淀经验。 底层实现叫约束层——一个层四种能力:注入·审计·回溯·进化。FORGE 自迭代工具链是内部开发工具。 内置持续优化模式(sustain),自动读 audit 报告趋势生成优化报告。.

KongFangXun/sofagent · 108 tokens