Skip to content

baka3k/dev-kit

Repository files navigation

DevKit

A token-efficient agent skills kit for software engineering workflows. 15 composable skills, designed for Claude Code / Cursor / Continue / Copilot...etc

Advanced Capabilities

For complex codebases exceeding millions of Lines of Code and massive documentation scale (tens of gigabytes) - please integrate with cortex-harness (https://github.com/baka3k/cortex-harness).

The pre-configured skills natively support hybrid querying across both Graph Databases (GraphDB) and Vector Databases (VectorDB).

By combining graph-code-based relational queries with semantic search, the system optimizes context retrieval and dramatically accelerates project onboarding and codebase understanding.

Installation

$ npx skill-dev
┌   devkit   Dev Kit Installer
│
◆  Select skills
│  ◼ hi-brew (ALWAYS activate before implementing ANY feature, plan, or fix.)
│  ◼ hi-debug
│  ◼ hi-explorer
│  ◼ hi-fix
│  ◼ knows
│  ◼ hi-log
│  ◼ hi-plan
│  ◼ hi-predict
│  ◼ hi-problem-solving
│  ◼ hi-scenario
│  ◼ hi-security
│  ◼ hi-sequential-thinking
└ ....

◇ Select target agent
❯ Claude Code
  OpenCode
  Qwen Code
  GitHub Copilot
  Cursor
  Continue
  Generic

◇ Install location
❯ Global (~/.claude/skills)
  Current project

◇ Summary
Agent: Claude Code
Skills: 12 selected
Location: Global
Install? (Y/n)

Install Other skills from github

Usage

npx skill-dev                       # default: baka3/dev-kit on GitHub
npx skill-dev <url>                 # any supported source
npx skill-dev owner/repo            # GitHub shorthand
npx skill-dev ./local-skills        # local directory
npx skill-dev https://example.com   # well-known endpoint
npx skill-dev -h                    # help
npx skill-dev -v                    # version
npx skill-dev --no-manifest         # skip AGENTS.md / CLAUDE.md auto-install

Manifest files (AGENTS.md / CLAUDE.md)

Whenever the source repo (or local directory / well-known endpoint) carries AGENTS.md or CLAUDE.md at its root, skill-dev automatically copies them. Each file routes to its own "natural home" so the install mirrors how the skills directory is laid out:

File Global scope target Why
AGENTS.md ~/.agents/AGENTS.md Universal, agent-neutral. Sibling of the canonical ~/.agents/skills/ so the same content is shared by every agent.
CLAUDE.md ~/.claude/CLAUDE.md Claude-Code-specific. Sits alongside the skills/ symlink that points into ~/.agents/skills/. Respects $CLAUDE_CONFIG_DIR if set.
Other (e.g. GEMINI.md) ~/.agents/ (fallback) Unknown filenames default to the canonical ~/.agents/ — add a new switch case in src/install/manifest.ts to route a new manifest elsewhere.

For project scope every file lands at the project root (<cwd>/AGENTS.md, <cwd>/CLAUDE.md) — same convention as the rest of the ecosystem.

AGENTS.md

# Root Agent: Context Search Directive

**Objective:** Gather project context before executing tasks.
**Fast-Fail Rule:** If a tool is missing or disconnected -> SKIP IMMEDIATELY to the next level (Do NOT retry).

## Strict Priority Flow
*Proceed to the next step ONLY if the current step yields no results or the tool is unavailable.*

1. **`mind_mcp`**: Retrieve project docs, concepts, and foundational knowledge.
2. **`graph_mcp` (`semantic_search`)**: Find codebase relationships and logic (rely on semantics, not exact string matching).
3. **`serena` (search)**: Broad codebase search.
4. **`grep`/`rg` (Native tools)**: File system sweep for exact strings (Absolute last resort).

## Mandatory Rules
- **No Hallucination:** If the entire search chain fails, stop and ask the user for details. Never fabricate context.
- **Merge Context:** Prioritize structured data from `graph_mcp` if tools return overlapping information.
- **No Assumptions:** Ask, don't guess. Highlight tradeoffs and admit confusion.
- **Minimal Code:** Solve only the target problem. No over-engineering.
- **Strict Scope:** Touch only what's necessary. Clean up your own mess.
- **Success Criteria:** Iterate until explicitly verified.

NOTICE: For complex codebases exceeding millions of Lines of Code and massive documentation scale (tens of gigabytes), you need mind_mcp & graph_mcp - please integrate with cortex-harness (https://github.com/baka3k/cortex-harness).

  • mind_mcp: GraphRAG – Handles project document processing and retrieval.
  • graph_mcp: GraphCode – Maps the source code call graph, visualizing function-level node interactions.

About Serena - refer https://github.com/oraios/serena

Supported agents

Agent Global install Project install
Claude Code ~/.claude/skills .claude/skills
OpenCode ~/.config/opencode/skills .opencode/skills
Qwen Code ~/.qwen/skills .qwen/skills
GitHub Copilot ~/.copilot/skills .github/skills
Cursor ~/.cursor/skills .cursor/skills
Continue ~/.continue/skills .continue/skills
Generic ~/.devkit/skills .devkit/skills

Set CLAUDE_CONFIG_DIR, CODEX_HOME, or XDG_CONFIG_HOME to override the base config directory.

Custom sources

The CLI uses a provider pattern — no git clone, only HTTP. To publish your own skill set, point skill-dev at any of:

Provider Example Notes
GitHub https://github.com/owner/repo Uses the Git Trees API + raw.githubusercontent.com
GitLab https://gitlab.com/owner/repo Uses the GitLab Repository Tree API
Well-known https://example.com (serves /.well-known/agent-skills/index.json) RFC 8615–style discovery
Local ./my-skills Reads SKILL.md files from a directory tree

A "skill" is any directory that contains a SKILL.md file with YAML frontmatter:

---
name: Code Review
description: Carefully review code for correctness, performance, and style
---

# Code Review

When reviewing code, follow these steps…

A repository may lay out skills under any of skills/, skills/.curated/, .agents/skills/, or at the repo root.

How install works

For each (skill, agent, scope) pair, the CLI:

  1. Writes the skill's SKILL.md to .agents/skills/<name> (the canonical location).
  2. Symlinks the agent's skills directory to the canonical one (single source of truth, easy updates).
  3. Falls back to a recursive copy on Windows when symlinks aren't available.

The result: one copy on disk that every agent reads from, and updates apply everywhere.

Environment variables

Var Effect
GITHUB_TOKEN Use a GitHub token to avoid rate limits (private repos too)
GITLAB_TOKEN Use a GitLab token to avoid rate limits (private repos too)
INSTALL_INTERNAL_SKILLS=1 Include skills marked metadata.internal: true
CLAUDE_CONFIG_DIR Override the Claude Code base config directory
CODEX_HOME Override the Qwen Code base config directory
XDG_CONFIG_HOME Override the OpenCode base config directory

Programmatic API

import { parseSource, findProvider, loadSkillsFromSource } from "skill-dev/source";
import { discover } from "skill-dev/source/discover";
import { installSkill } from "skill-dev/install/run";

The package is published as ESM ("type": "module").

Skills

Orchestrators (drive end-to-end work)

Skill Purpose Default mode
hi-brew Implement features (plan → code → test → finalize) fast
hi-fix Fix bugs (explorer → diagnose → fix → verify → finalize) quick
hi-plan Multi-mode planning (fast / full / hard / parallel) fast

Leaf skills (called by orchestrators)

Skill Purpose
hi-explorer Parallel codebase explore (multi-agent file discovery)
hi-debug Systematic debugging + root cause tracing + verification gate
hi-knows Evidence retrieval (Git → MCP → memory)
hi-log Write session log entries to ./docs/logs/
hi-problem-solving Stuck-unsticking techniques (inversion, collision-zone, scale-game)

Analysis & methodology

Skill Purpose
hi-scenario 12-dimension edge case explore before implementation
hi-predict 5-persona pre-analysis debate
hi-security STRIDE + OWASP security audit with iterative auto-fix
hi-sequential-thinking Sequential reasoning with revision / branching / hypothesis testing

Tool integration & exploration

Skill Purpose
hi-repo-search Search & explore ingested repos via code graph + document graph RAG
hi-chrome-devtools Browser automation via Puppeteer CLI (screenshots, perf, scraping, form auth)

Typical Workflows

Implement feature:  hi-brew (fast) → hi-plan inline → code → test → hi-log → commit
Implement complex:  hi-brew (full) → hi-explorer → hi-plan (full) → code → review → commit
Fix bug:            hi-fix (quick) → explorer → diagnose → fix → verify → commit
                    hi-fix (deep)  → hi-explorer (parallel) → hi-debug → hi-problem-solving
Pre-flight chehi-   hi-scenario (12 dim) → hi-predict (5 personas) → ship
Security audit:     hi-security (STRIDE phases 0-6) → fix mode → re-verify

Quick Start

# Skills are picked up automatically by Claude Code / Cursor / Continue.
# Trigger via slash command or natural language.

Install on Cursor (global): copy .cursorrules + skill folders to ~/.cursor/skills/. Install on Claude Code: copy skill folders to ~/.claude/skills/.

See USAGE_GUIDE.md for per-skill usage, inputs, and outputs.

Folder Structure

dev-kit/
├── hi-brew/          SKILL.md + references/ + agents/
├── hi-fix/
├── hi-plan/
├── hi-explorer/
├── hi-debug/         SKILL.md + references/ + scripts/
├── hi-knows/
├── hi-log/
├── hi-problem-solving/  SKILL.md + references/ (7 techniques)
├── hi-scenario/      SKILL.md + references/
├── hi-predict/
├── hi-security/      SKILL.md + references/ + scripts/
├── hi-sequential-thinking/  SKILL.md + references/ (5 files)
├── hi-repo-search/   SKILL.md + references/ + agents/
├── hi-chrome-devtools/
├── knows/            Standalone evidence retrieval
├── .cursorrules      Cursor auto-load rules
├── AGENTS.md         Agent harness instructions
├── CLAUDE.md         Project-level Claude instructions
├── devkit.md         Workflow diagrams (mermaid) + HARD-GATEs
├── dependency.md     Skill-to-skill call graph + missing skills

Key Conventions

  • HARD-GATE — non-negotiable rules per skill (e.g. hi-fix blocks before Explorer + Diagnose complete)
  • Inline > Spawn — only spawn sub-skills when really needed (>2 fail, scope too large)
  • Mode flags — every orchestrator has --fast / --full / --review; default = lightest
  • Evidence over assumption — every claim cites file:line or commit:sha
  • Vietnamese by default — human-readable outputs (logs, plans) are Vietnamese; technical artifacts keep English

Token Economy

Designed for minimum token burn:

  • Default modes skip heavy sub-skill spawns (~80% reduction vs naive workflow)
  • Parallel subagents only when 3+ files / 2+ independent issues
  • Verification gates prevent over-fixing (typecheck+lint beats full test suite when not needed)

See optimize.md for the full token-burn analysis.

Adding a Skill

  1. Create your-skill/SKILL.md with frontmatter: name, description, argument-hint, metadata
  2. Add references/ for supporting docs (optional)
  3. Add agents/openai.yaml for Cursor / Copilot picker (optional)
  4. Run python scripts/sync_manifest.py (auto-regenerates MANIFEST.json)

Reference Docs

Doc What's in it
devkit.md Mermaid workflow diagrams + HARD-GATEs + cross-skill integration
dependency.md Skill call graph, missing skills, external refs to fix

DevKit — Workflow Diagrams

Visual workflows for the 3 core skills: hi-brew, hi-fix, hi-plan. Mapped to current SKILL.md versions (brew v3.0.0, fix v2.0.0, plan v2.0.0).


0. Leaf Skills (Called automatically by main skills)

Skill Called by Purpose
hi-explorer brew, fix, debug Codebase scanning & file discovery
hi-log brew, plan Session logging
sequential-thinking plan Step-by-step analysis
docs-seeker plan, debug Documentation lookup
hi-debug fix Advanced debugging
hi-problem-solving fix, debug Stuck-unsticking framework

1. hi-brew — Feature Implementation

1.1 Mode Matrix

Mode Research Plan Review Test Finalize
fast (default) skip inline hi-plan --fast skip run commit + log
full yes (explorer + researcher) yes MUST run commit + log + review
review skip inline MUST run commit + log + review
auto skip inline auto-pass run commit + log
no-test skip inline skip skip commit + log
code (path to plan) skip optional run commit + log

1.2 Quick (default) — Linear Flow

graph LR
    A[1. Plan<br/>sequential-thinking<br/>+ docs-seeker] --> B[2. Implement<br/>direct execution]
    B --> C[3. Test<br/>run command]
    C -->|pass| D[4. Finalize<br/>commit + /hi-log]
    C -->|fail ≤2| C
    C -->|fail ≥3| E[spawn hi-fix]

    classDef step fill:#bbdefb,stroke:#0d47a1,color:#000
    classDef fail fill:#ffcdd2,stroke:#b71c1c,color:#000
    class A,B,C,D step
    class E fail

Loading

2. hi-fix — Issue Resolution

2.1 Quick (default) — Linear Flow

graph LR
    A[1. Explorer<br/>locate-only, 1 agent] --> B[2. Diagnose<br/>read error,<br/>find root cause]
    B --> C[3. Fix<br/>root cause,<br/>minimal change]
    C --> D[4. Verify<br/>typecheck + lint]
    D --> E[5. Finalize<br/>report → commit]

    classDef step fill:#bbdefb,stroke:#0d47a1,color:#000
    class A,B,C,D,E step

Loading

2.2 Standard / Deep — Escalation Path

graph TD
    A["Explorer: hi-explorer<br/>2-3 parallel"] --> B["Diagnose"]

    B --> B1{"Diagnosis stuck?"}

    B1 -->|Yes| B2["activate hi-debug"]
    B1 -->|"2+ hypo fail"| B3["activate hi-problem-solving"]
    B1 -->|No| C

    B2 --> B
    B3 --> B

    C["Fix: root cause"] --> D{"Verify level"}

    D -->|Standard| D1["typecheck+lint<br/>+ build + test"]
    D -->|Deep| D2["comprehensive:<br/>edge cases,<br/>security, perf"]

    D1 --> E["Finalize: report →<br/>review (if --review)<br/>→ docs → commit"]
    D2 --> E

    classDef step fill:#bbdefb,stroke:#0d47a1,color:#000
    classDef skill fill:#c8e6c9,stroke:#1b5e20,color:#000
    classDef gate fill:#ffe0b2,stroke:#e65100,color:#000

    class A,C,E step
    class B2,B3 skill
    class B,B1,D gate

Loading

3. hi-plan — Implementation Planning

3.1 Fast (default) — Linear Flow

graph LR
    A[1. Cross-Plan Scan<br/>scan if<br/>plan active] --> B[2. Scope Challenge<br/>SKIP - fast]
    B --> C[3. Codebase Analysis<br/>Read docs, scan<br/>no subagent]
    C --> D[4. Plan Documentation<br/>plan.md + phase-XX.md]
    D --> E{Phases ≥ 3?}
    E -->|Yes| F[5. Hydrate Tasks<br/>TaskCreate/phase]
    E -->|No| G[Skip: overhead > benefit]
    F --> H[6. Output<br/>absolute path]
    G --> H

    classDef step fill:#bbdefb,stroke:#0d47a1,color:#000
    classDef skip fill:#e0e0e0,stroke:#616161,color:#000
    classDef gate fill:#ffe0b2,stroke:#e65100,color:#000
    class A,C,D,F,H step
    class B,G skip
    class E gate

Loading

3.2 Full (--full) — 10 Steps

graph TD
    A[1. Pre-Creation Check<br/>Check Plan Context] --> B[2. Cross-Plan Scan<br/>Detect blockedBy/blocks,<br/>update both plans]
    B --> C[3. Scope Challenge<br/>3 questions,<br/>select mode]
    C --> D[4. Research<br/>Spawn 1 researcher]
    D --> E[5. Codebase Analysis<br/>Read docs, scan if needed]
    E --> F[6. Plan Documentation<br/>plan.md + phase-XX.md]
    F --> G[7. Red Team<br/>/hi-plan red-team path]
    G --> H[8. Validate<br/>/hi-plan validate path]
    H --> I{Phases ≥ 3?}
    I -->|Yes| J[9. Hydrate Tasks<br/>TaskCreate/phase]
    I -->|No| K[Skip tasks]
    J --> L[10. Output<br/>absolute path<br/>+ brew command]
    K --> L

    classDef step fill:#bbdefb,stroke:#0d47a1,color:#000
    classDef skip fill:#e0e0e0,stroke:#616161,color:#000
    classDef gate fill:#ffe0b2,stroke:#e65100,color:#000
    class A,B,C,D,E,F,G,H,J,L step
    class K skip
    class I gate

Loading

3.3 Subcommands

graph LR
    Main[hi-plan] --> Default[default<br/>fast mode]
    Main --> Full[--full<br/>full flow]
    Main --> Hard[--hard<br/>2 researchers + red team]
    Main --> Parallel[--parallel<br/>2 researchers + red team]
    Main --> Two[--two<br/>2+ researchers,<br/>select after]
    Main --> NoTasks[--no-tasks<br/>skip task hydration]
    Main --> Archive[/hi-plan archive<br/>Archive plans + log/]
    Main --> RedTeam[/hi-plan red-team path<br/>Adversarial review/]
    Main --> Validate[/hi-plan validate path<br/>Critical questions interview/]

    classDef mode fill:#e3f2fd,stroke:#0d47a1,color:#000
    classDef sub fill:#c8e6c9,stroke:#1b5e20,color:#000
    class Default,Full,Hard,Parallel,Two,NoTasks mode
    class Archive,RedTeam,Validate sub

Loading

4. Cross-skill Integration

graph TD
    User([User request]) --> Detect{Detect intent}

    Detect -->|Implement feature| Brew[hi-brew]
    Detect -->|Fix bug| Fix[hi-fix]
    Detect -->|Plan / architecture| Plan[hi-plan]

    Brew -->|Step 1: Plan| Plan
    Brew -->|Step 3: Test fail ≥3| Fix
    Brew -->|Step 4: Finalize| Log[hi-log]

    Fix -->|Step 1: Explorer| explorer[hi-explorer]
    Fix -->|Step 2: Diagnose stuck| Debug[hi-debug]
    Fix -->|Step 2: 2+ hypotheses fail| PS[hi-problem-solving]
    Fix -->|Step 4: Verify| Log

    Plan -->|research-phase| ST[sequential-thinking]
    Plan -->|research-phase| Docs[docs-seeker]
    Plan -->|archive-workflow.md| Log

    Debug -->|Tools section| explorer
    Debug -->|Tools section| Docs
    Debug -->|Tools section| PS

    explorer --> Output[Report: files + descriptions]
    Debug --> Output2[Root cause + fix recommendation]
    PS --> Output3[Stuck-unsticking framework]
    Log --> Output4[Session log entries]

    classDef primary fill:#c8e6c9,stroke:#1b5e20,color:#000
    classDef linked fill:#bbdefb,stroke:#0d47a1,color:#000
    classDef leaf fill:#fff9c4,stroke:#f57f17,color:#000
    classDef endnode fill:#f5f5f5,stroke:#333,color:#000

    class Brew,Fix,Plan primary
    class explorer,Debug,Log,ST,Docs,PS linked
    class Output,Output2,Output3,Output4 leaf
    class User,Detect endnode

Loading

5. HARD-GATEs

Skill HARD-GATE Violation Behavior
hi-brew No code without plan + review Stop, request hi-plan first (unless user says "just code it")
hi-fix No fix before Explorer + Diagnose Force Steps 1-2; if fail 3+ times → STOP, ask user for architecture
hi-plan Cross-Plan Scan update both plan.md Ensure bidirectional update, no plan left behind

6. General Rules (Cross-cutting)

  1. Hard-gate first, fast-path later — default to lightweight mode, use flags for expansion.
  2. Inline > Spawn — only spawn sub-skills when necessary (3+ fails, 2+ hypothesis fails, large scope).
  3. Token budget — each subagent spawn = 10-15K tokens. Prioritize inline methodology.
  4. Test/Verify just enoughtypecheck+lint for quick, +build+test for standard, comprehensive for deep.
  5. Review optional — run only via --review or full mode. Auto-approve requires score ≥ 9.5 + 0 critical.
  6. Finalize = commit + log — always conclude with git commit + /hi-log (recording decisions, root causes, impacts).

License

This project is licensed under the MIT License. See LICENSE for details.

About

A lightweight skills framework for software engineering AI agents. Includes 13 specialized, composable skills for debugging, code investigation, implementation planning, architecture analysis, and root-cause diagnosis. Built to reduce prompt bloat and unnecessary token consumption.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors