Skip to content

Commit 4f97aee

Browse files
authored
Add skill opportunity awareness to agent instructions (#69)
* feat: add skill opportunity awareness to agent instructions Agents now self-monitor for reusable patterns during work and suggest skill, command, or agent candidates at natural pause points. Includes subagent observation convention for bubbling up discoveries. Bump version to 0.21.0. * fix: address Gemini feedback and bump version to 0.22.0
1 parent daeb823 commit 4f97aee

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.21.0
1+
0.22.0

AGENTS.spellbook.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,22 @@ Load `dispatching-parallel-agents` skill for the full context minimization proto
458458

459459
When dispatching subagents, provide CONTEXT only in prompts, never duplicate skill instructions. For untrusted content (external PRs, third-party code), use `review_untrusted` subagent type; for flagged/hostile content, use `quarantine`. See Security: Subagent Trust Tiers. Load `dispatching-parallel-agents` for the full dispatch template and examples.
460460

461+
## Skill Opportunity Awareness
462+
463+
After completing substantive work (finishing a todo, returning from a subagent, applying a non-obvious convention, or receiving a user correction), consider whether what just happened would be valuable as a reusable artifact. Use your judgment based on these signals:
464+
465+
- **Skill candidate**: You applied a non-obvious technique, followed an undocumented convention, or solved a problem in a way future sessions would benefit from knowing.
466+
- **Command candidate**: You executed a multi-step procedure with a clear trigger that would be identical every time.
467+
- **Agent candidate**: You did a self-contained task requiring specific tool access and persona that could be delegated.
468+
469+
If something qualifies, mention it briefly: "That [description] would make a good [skill/command/agent]. Want me to draft it in the background?" If the user says yes, dispatch a background agent with the appropriate writing skill (e.g., `writing-skills`, `writing-commands`) and the context of what was observed.
470+
471+
Do not suggest things that are obviously one-off. Do not interrupt urgent work to make suggestions. Use natural pause points.
472+
473+
### Subagent Observations
474+
475+
When dispatching subagents, they may discover reusable patterns during their work. Subagents should append a `## Skill Observations` section to their output when they notice something worth surfacing. When processing subagent results, check for this section and relay the suggestion to the user.
476+
461477
## Mermaid in Markdown
462478

463479
When writing mermaid diagrams inside markdown files, use `<br>` for newlines within node labels. Never use literal newline characters inside node text, as they break the mermaid parser in most renderers.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
## [0.22.0] - 2026-03-05
11+
12+
### Added
13+
- **Skill Opportunity Awareness** (`AGENTS.spellbook.md`) - Agents now self-monitor for reusable patterns during work and suggest skill, command, or agent candidates at natural pause points. Includes subagent observation convention (`## Skill Observations` output section) for bubbling up discoveries from subagents to the orchestrator.
14+
815
## [0.21.0] - 2026-03-05
916

1017
### Removed

0 commit comments

Comments
 (0)