Skip to content

M2: Add skills system with SKILL.md loading and shell execution#27

Merged
bug-ops merged 1 commit intomainfrom
feat/m2/skills-shell-execution
Feb 5, 2026
Merged

M2: Add skills system with SKILL.md loading and shell execution#27
bug-ops merged 1 commit intomainfrom
feat/m2/skills-shell-execution

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Feb 5, 2026

Summary

  • SKILL.md parser with YAML frontmatter and markdown body extraction
  • Skill registry scanning directories for */SKILL.md files
  • XML-like prompt formatter for system prompt injection
  • 3 bundled skills: web-search (curl+jq), file-ops (ls/find/grep), system-info (uname/df/ps)
  • Bash code block detection and execution in agent loop (30s timeout, max 3 iterations)
  • Context builder composing base system prompt with skill instructions
  • 29 total tests (12 zeph-skills, 14 zeph-core, 3 zeph-llm)

Acceptance Criteria

  • Skills loaded from skills/ at startup
  • Skill instructions injected into system prompt
  • LLM-generated bash commands detected and executed
  • Command output fed back to LLM for final answer
  • Invalid SKILL.md files logged and skipped
  • cargo clippy -- -D warnings clean
  • cargo test --workspace — 29 tests pass

Closes #12, closes #13, closes #14, closes #15, closes #16
Relates to #3

SKILL.md parser (YAML frontmatter + markdown body), skill registry
with directory scanning, XML-like prompt formatter for system prompt
injection, 3 bundled skills (web-search, file-ops, system-info),
bash block extraction/execution with 30s timeout and 3-iteration cap,
context builder for prompt composition. 29 tests total.

Closes #12, closes #13, closes #14, closes #15, closes #16
@bug-ops bug-ops merged commit b0d1ca2 into main Feb 5, 2026
@bug-ops bug-ops deleted the feat/m2/skills-shell-execution branch February 5, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant