feat(plugins): add built-in code-puppy-agent architecture skill#488
Merged
mpfaffenberger merged 2 commits intoJun 18, 2026
Merged
Conversation
- Ship a SKILL.md providing deep reference on Code Puppy internals - Register the skill via register_skills callback in plugins/agent_skills - Include minimal __init__.py with plugin documentation - Enables the LLM to understand project structure, plugins, tools, and agent system for better navigation and extension
- Add `_isolate_plugin_skills` fixture that mocks _collect_plugin_skills to return empty lists by default, preventing built-in skills from leaking into tests that assert exact filesystem-only counts - Introduce `plugin_skills` pytest marker so tests that need the real plugin-skill collector can opt out of the isolation - Decorate relevant tests with @pytest.mark.plugin_skills to opt in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a new built-in plugin,
code_puppy_agent, that ships aSKILL.md— a self-awareness document teaching the LLM Code Puppy's internal architecture (agents, tools, plugins, models, MCP, sessions, skills) so it can navigate the codebase and extend the product without guessing. This mirrors the pattern used by Hermes'shermes-agentskill.Why
When the LLM needs to add a plugin, debug MCP, or understand tool registration, it currently has to re-derive the architecture by reading source. A skill that documents the actual internals — hook names, discovery precedence, prompt layering — turns guessing into lookup.
What changed
code_puppy/plugins/code_puppy_agent/__init__.pycode_puppy/plugins/code_puppy_agent/register_callbacks.pyregister_skillscallback (skill_md_path)code_puppy/plugins/code_puppy_agent/SKILL.mdtests/plugins/conftest.py_isolate_plugin_skillsfixture so the built-in skill doesn't leak into filesystem-only discovery teststests/plugins/test_agent_skills.py@pytest.mark.plugin_skillsDesign notes
skill_md_pathover inline — the SKILL.md is ~19 KB; inlining viaskill_mdwould bloatregister_callbacks.py. Reading the file via path is cleanest and preserves hand-authored frontmatter.request.node.get_closest_marker("plugin_skills")and skips the monkeypatch when present, so plugin-skill tests declare their intent at the decorator instead of undoing a fixture yield."name"matches the SKILL.md frontmattername:; a comment documents why (dedup + disable-set vs. display/activation) and the breakage symptom if they drift.Verification
uv run pytest tests/plugins/ tests/test_callbacks_extended.py -q→ 2411 passed, 5 skippedruff check+ruff format --checkclean on all touched files