From 7af254ca25c04bd05fef5f3b4b7aaffeec0e802f Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Sat, 7 Feb 2026 21:36:10 +0800 Subject: [PATCH 1/3] feat: add skill and quite mode Signed-off-by: Dennis Zhuang --- README.md | 26 ++++++++++ cmd/devtap/drain.go | 16 ++++-- cmd/devtap/status.go | 23 +++++++- cmd/devtap/storefactory_test.go | 52 +++++++++++++++++++ internal/mcp/server.go | 21 ++++++++ internal/mcp/server_test.go | 44 ++++++++++++++++ skills/devtap-get-build-errors/SKILL.md | 28 ++++++++++ .../scripts/get_build_errors.sh | 12 +++++ 8 files changed, 218 insertions(+), 4 deletions(-) create mode 100644 cmd/devtap/storefactory_test.go create mode 100644 skills/devtap-get-build-errors/SKILL.md create mode 100755 skills/devtap-get-build-errors/scripts/get_build_errors.sh diff --git a/README.md b/README.md index 99190d7..4ee1df6 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,30 @@ devtap install --adapter claude-code This configures the MCP server and injects devtap instructions into your project's instruction file (e.g., `CLAUDE.md`). See [Supported Tools](#supported-tools) for all available adapters. +### Skills (Optional) + +devtap ships with a built-in [skill](https://docs.anthropic.com/en/docs/claude-code/skills) that works as a CLI fallback when MCP is unavailable. Install it to let the agent fetch build output on demand: + +```bash +# Claude Code +mkdir -p ~/.claude/skills && cp -r skills/devtap-get-build-errors ~/.claude/skills/ + +# Codex CLI +mkdir -p ~/.codex/skills && cp -r skills/devtap-get-build-errors ~/.codex/skills/ +``` + +Or fetch directly from the repo without cloning: + +```bash +DEST=~/.claude/skills/devtap-get-build-errors +mkdir -p "$DEST" && cd "$DEST" +for f in SKILL.md scripts/get_build_errors.sh; do + mkdir -p "$(dirname "$f")" + curl -sL "https://raw.githubusercontent.com/killme2008/devtap/main/skills/devtap-get-build-errors/$f" -o "$f" +done +chmod +x scripts/get_build_errors.sh +``` + ### Usage **Terminal A** — capture build output: @@ -299,7 +323,9 @@ Subcommands: install Configure AI tool integration (--session and --store are forwarded to MCP config) mcp-serve Start MCP stdio server drain Read pending messages as plain text + -q, --quiet Raw output without source/tag headers status Show pending message counts + -q, --quiet Compact output (pending count only) history Query build error history (GreptimeDB only) --since Time range (default "24h") --tag