Add agent customization: agents, hooks, skills, and instructions#1502
Conversation
liudger
commented
Jun 2, 2026
- Add security-reviewer agent definition
- Add run-validation-after-edits hook (config + script)
- Add feature-doc-updates skill; expand bsblan-testing skill
- Restructure AGENTS.md and slim copilot-instructions.md
- Point CLAUDE.md at AGENTS.md
- Update code-review prompt
- Add security-reviewer agent definition - Add run-validation-after-edits hook (config + script) - Add feature-doc-updates skill; expand bsblan-testing skill - Restructure AGENTS.md and slim copilot-instructions.md - Point CLAUDE.md at AGENTS.md - Update code-review prompt
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1502 +/- ##
=======================================
Coverage 99.90% 99.90%
=======================================
Files 6 6
Lines 1087 1087
Branches 146 146
=======================================
Hits 1086 1086
Partials 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
There was a problem hiding this comment.
Pull request overview
This PR introduces repository-level AI agent customization for python-bsblan, including canonical agent instructions, additional skills, a security reviewer agent, a post-edit validation hook, and updated review prompt/docs pointers.
Changes:
- Add
AGENTS.mdas the canonical agent guidance and updateCLAUDE.md+.github/copilot-instructions.mdto reference it. - Add a security-focused agent definition and a new “feature-doc-updates” skill; expand the existing testing skill.
- Add a post-tool-use hook to automatically run tests + prek after edits, and refresh the code-review prompt.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
CLAUDE.md |
Points Claude instructions to AGENTS.md. |
AGENTS.md |
Adds canonical repo agent instructions, validation commands, and conventions. |
.github/copilot-instructions.md |
Slimmed to a compatibility pointer to AGENTS.md. |
.github/agents/security-reviewer.agent.md |
Adds a dedicated security review agent definition. |
.github/hooks/run-validation-after-edits.json |
Registers a PostToolUse hook to run validation after edits. |
.github/hooks/run_validation_after_edits.sh |
Implements the hook logic (detect edits, run pytest + prek). |
.github/prompts/code-review.prompt.md |
Updates the code review prompt to prioritize findings and quality gates. |
.github/skills/feature-doc-updates/SKILL.md |
Adds a skill to drive doc updates alongside feature work. |
.github/skills/bsblan-testing/SKILL.md |
Updates fixture-loading guidance and expands testing/mocking guidance. |
| Setup commands: | ||
|
|
||
| ```bash | ||
| npm install | ||
| make setup | ||
| ``` |
| ### Fixture Setup and Registration | ||
|
|
||
| Define shared fixtures in `tests/conftest.py` so pytest auto-discovers them. |
| - [ ] Error handling uses custom exceptions (`BSBLANError`, | ||
| `BSBLANConnectionError`) |


