hm-l3-detective
Investigate codebases with SCAN, READ, and DEEP reading modes.
Skill by shynlee04
Chalk Labs
Need help deploying hm-l3-detective?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/shynlee04-hm-l3-detective
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, writing, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/hm-l3-detective
Tools it pre-approves 6
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
ReadWriteEditBashGlobGrep
What's inside
- Skill name
hm-l3-detective- Description
- Investigate codebases with SCAN, READ, and DEEP reading modes. Use when navigating large codebases, finding definitions, or recovering session context. Stage 1 of the hm-research-chain pipeline. Feeds findings into hm-deep-research and hm-synthesis. Consumes cached assets from hm-tech-stack-ingest. NOT for writing code or running tests.
- License
- MIT
- Allowed tools
- Read, Write, Edit, Bash, Glob, Grep
- Metadata
- role: investigation · layer: 2 · pattern: P2
- Instructions
- 321 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Pre-approves any shell command
Files (15)
- SKILL.md
- .gitkeep · evals/
- evals.json · evals/
- .gitkeep · metrics/
- rich-gate-scorecard.md · metrics/
- document-pipeline.md · references/
- reading-modes.md · references/
- surgical-edits.md · references/
- swarm-recovery.md · references/
- tech-registry.md · references/
- token-budget.md · references/
- .gitkeep · scripts/
- validate-rich-package.sh · scripts/
- .gitkeep · templates/
- assumption-verification.md · templates/
SKILL.md (first lines)
## Overview Investigate codebases using three reading modes: SCAN for targeted extraction, READ for standard review, and DEEP for interface analysis. Use when navigating large codebases, finding definitions, recovering session context, or estimating token budgets. Produces structured codebase findings with surgical edit guidance. ## Quick Jump | Investigation Need | Section | Jump | |--------------------|---------|------| | "How do I read this?" | Reading Modes | [Three Reading Modes](#three-reading-modes) | | "How much context will this cost?" | Token Budget | [references/token-budget.md](references/token-budget.md) | | "I lost context — recover" | Swarm Recovery | [references/swarm-recovery.md](references/swarm-recovery.md) | | "What tech stack is this?" | Tech Registry | [references/tech-registry.md](references/tech-registry.md) | | "How do I edit safely?" | Surgical Edits | [references/surgical-edits.md](references/surgical-edits.md) | | "Where do notes go?" | Document Pipeline | [references/document-pipeline.md](references/document-pipeline.md) | | "Is this design assumption true?" | Assumption Verification | [templates/assumption-verification.md](templates/assumption-verification.md) | ## Three Reading Modes Every file read costs tokens. Choose the cheapest mode that answers your question. | Mode | Token Cost | When | Tools | |------|-----------|------|-------| | **SKIM** | ~5% | Orientation: "what is this?" | glob, ls, frontmatter-only, grep -c | | **SCAN** | ~15% | Targeted: "find X" | grep -n, offset reads ±20 lines, TOC navigation | | **SCAN (Tech Stack)** | ~10% | Stack detection: "what's this built with?" | grep indicator files, read 5-10 config files | | **DEEP** | 100% | Understanding: "need every line" | Read full file, repomix pack + grep | **Escalation rule**: START → SKIM → (if insufficient) SCAN or SCAN (Tech Stack) → (if still need context) DEEP. Never skip to DEEP. ### Assumption Verification Mode Use this mode when asked to validate a design assumption, locate an existing pattern, prove whether behavior exists, or recover truth from a large codebase. 1. Write the assumption as a falsifiable claim. 2. Search for at least two independent evidence paths: definitions, call sites, tests, docs, config, runtime state, or git history. 3. Classify the result using `templates/assumption-verification.md`: confirmed, discrepancy, addition, missing, or blocked. 4. If nothing is found, report the search paths and exact queries; do not silently treat absence as proof. 5. End with an answer-first finding and file:line evidence. **Not-found rule:** A definitive "not found" requires at least two search strategies and a documented scope boundary. ### Mode Selection Decision Tree ``` What do you need? | +-- "What files exist?" or "What is this project?" | -> SKIM: glob patterns, ls directory, grep -c for match counts | +-- "Where is function X defined?" or "What imports Y?" | -> SCAN: grep -n "pattern" file → get line numbers → offset read ±20 | +-- "What tech stack is this?" or "What framework is this built with?" | -> SCAN (Tech Stack): grep for package.json/go.mod/Cargo.toml → read 5-10 config files | +-- "How does this algorithm work?" or "I need to understand every branch" | -> DEEP: Read full file (only after SKIM + SCAN confirm it's the right file) ``` ### Case Study: Finding a Bug in a 600-Line File **Wrong**: Read the entire 600-line file. Cost: ~600 lines of context. **Right**: 1. SKIM: `grep -c "error" file.ts` → 12 matches. File is relevant. 2. SCAN: `grep -n "error" file.ts` → lines 45, 120, 234, 310, 445, 501, 520, 533, 540, 555, 567, 580 3. SCAN: Read offset=40 limit=30 (lines 40-70), offset=115 limit=30 (lines 115-145), etc. 4. DEEP: Only if the bug spans multiple sections you've already identified. **Cost**: ~200 lines vs 600 lines. 67% savings. ## Token-Efficient Retrieval Patterns These patterns apply across all reading modes. Master them before any investigation. | Pattern | How | Savings | |---------|-----|---------| | **Offset Hop-Reading** | Read offset=N limit=30 instead of reading N lines to get to line N | 90%+ vs full read | | **Grep-Before-Read** | grep -n → get line numbers → offset read only those sections | 80%+ vs blind read | | **Frontmatter-Only** | For planning docs, read only between --- markers | 95%+ vs full doc | | **TOC-First** | grep ## headings first, then targeted reads | 70%+ vs full read | | **Repomix Compress** | Always use compress: true (70% token reduction) | 70% vs uncompressed | ### Worked Example: Finding Where a Function Is Called **Goal**: Find all callers of `processTask` in a 47-file codebase. ``` Step 1 (SKIM): grep -rn "processTask" src/ --include="*.ts" | wc -l → 23 matches Step 2 (SKIM): grep -rn "processTask" src/ --include="*.ts" | cut -d: -f1 | sort -u → 8 files Step 3 (SCAN): For each of 8 files, grep -n "processTask" → get line numbers Step 4 (SCAN): Read ±20 lines around each call site (8 files × ~2 calls × 40 lines = 640 lines) Step 5 (DEEP): Only if a call site's context is unclear after SCAN ``` **Cost**: ~700 lines total vs reading all 47 files (~14,000 lines). **95% savings**. --- ## Hierarchical Tech Registry The `.tech-registry.json` file is your persistent memory across sessions. Read it FIRST before any investigation. ### What It Contains - **Stack**: Language, runtime, framework, test tool, build tool - **Modules**: Every source file with its role (leaf/core/entry), LOC, and dependencies - **Concerns**: Active issues and resolved problems ### Read-First Protocol ``` 1. Read .tech-registry.json 2. If exists → use stack for conventions, modules for dependency graph 3. If missing → run discovery (see references/tech-registry.md) 4. If stale → spot-check 3 files, update if mismatched ``` ### Update Protocol
From shynlee04/hivemind-plugin, MIT.
More from shynlee04/hivemind-plugin
- 0.578score
hf-l2-skill-synthesis
shynlee04
Use when synthesizing skills from GitHub repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven…
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l2-coordinating-loop
shynlee04
Coordinate multi-agent dispatch with validation gates and handoff protocols.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-synthesis
shynlee04
Compress research findings into actionable artifacts with tiered reduction.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-agent-composition
shynlee04
Teaches agents how to compose specialist agents from user intent using XML markup grammar, step protocols, and structured return formats.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-integration-contracts
shynlee04
Formal bidirectional contract authority between skills and agents.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-command-parser
shynlee04
This skill should be used only when parsing $ARGUMENT propositional commands from OpenCode command strings.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-skill-router
shynlee04
Maps meta-builder task domains to hf-* skill loading bundles with priority ordering.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
gate-l3-lifecycle-integration
shynlee04
Internal quality gate that evaluates whether Hivemind harness implementations correctly participate in the runtime lifecycle — covering 9-surface mutation…
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
gate-l3-spec-compliance
shynlee04
Spec compliance gate performing bidirectional traceability, gap detection (4 types), EARS acceptance criteria validation, and anti-pattern scanning.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-delegation-gates
shynlee04
Enforce pre-delegation authorization gates before agent dispatch.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hm-l2-requirements-analysis
shynlee04
Formal requirements diagnosis methodology for detecting gaps, contradictions, missing constraints, and unvalidated assumptions in existing requirements.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-context-absorb
shynlee04
Multi-wave swarm protocol for absorbing dense context (links, text, files, stories, events, actors) into persistent session-context-prompt.md.
SkillCFreshness: C★ 51Claude Code +9
Signals
- Stars
- 51
- Forks
- 16
- Open issues
- 21
- Last commit (this folder)
- May 7, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/shynlee04/hivemind-plugin
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from shynlee04
- 0.578score
hm-l3-integration-contracts
shynlee04
Formal bidirectional contract authority between skills and agents.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-synthesis
shynlee04
Compress research findings into actionable artifacts with tiered reduction.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-skill-synthesis
shynlee04
Use when synthesizing skills from GitHub repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven…
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l2-coordinating-loop
shynlee04
Coordinate multi-agent dispatch with validation gates and handoff protocols.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-agent-composition
shynlee04
Teaches agents how to compose specialist agents from user intent using XML markup grammar, step protocols, and structured return formats.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
gate-l3-lifecycle-integration
shynlee04
Internal quality gate that evaluates whether Hivemind harness implementations correctly participate in the runtime lifecycle — covering 9-surface mutation…
SkillCFreshness: C★ 51Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get hm-l3-detective running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
hm-l3-detective skill. Agent Mart. https://agentmart.dev/skills/shynlee04-hm-l3-detective (last updated 2026-10-24)