Skip to content

Add agent customization: agents, hooks, skills, and instructions#1502

Merged
liudger merged 1 commit into
mainfrom
agents-setup
Jun 2, 2026
Merged

Add agent customization: agents, hooks, skills, and instructions#1502
liudger merged 1 commit into
mainfrom
agents-setup

Conversation

@liudger
Copy link
Copy Markdown
Owner

@liudger 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
Copilot AI review requested due to automatic review settings June 2, 2026 09:31
@liudger liudger added security Marks a security issue that needs to be resolved asap. maintenance Generic maintenance tasks. ci Work that improves the continue integration. labels Jun 2, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.90%. Comparing base (c61e358) to head (ee60732).
⚠️ Report is 6 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

@liudger liudger merged commit 598056f into main Jun 2, 2026
20 checks passed
@liudger liudger deleted the agents-setup branch June 2, 2026 09:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md as the canonical agent guidance and update CLAUDE.md + .github/copilot-instructions.md to 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.

Comment thread AGENTS.md
Comment on lines +16 to +21
Setup commands:

```bash
npm install
make setup
```
Comment on lines +140 to +142
### Fixture Setup and Registration

Define shared fixtures in `tests/conftest.py` so pytest auto-discovers them.
Comment on lines +48 to +49
- [ ] Error handling uses custom exceptions (`BSBLANError`,
`BSBLANConnectionError`)
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ci Work that improves the continue integration. maintenance Generic maintenance tasks. security Marks a security issue that needs to be resolved asap.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants