Agent skill
patterns/interpreter
Interpreter Pattern pattern for C development
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/interpreter
SKILL.md
Interpreter Pattern
Define a grammar and interpreter for a language. Parse input into AST, evaluate by walking tree. Used for DSLs, expressions, commands.
ikigai Application
Slash commands: Simple interpreter - parse command name and args, dispatch to handler.
Future DSL possibilities:
- Query language for conversation search
- Filter expressions for message selection
- Template syntax for prompts
Current approach: Slash commands are simple enough that full interpreter isn't needed. Direct string matching suffices.
When to use: If command syntax grows complex (flags, subcommands, expressions), consider proper parser with grammar definition.
ANSI parsing: Terminal escape sequences are interpreted via state machine, a lightweight interpreter.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?