Skip to content

Commit 01baaa6

Browse files
committed
feat: add self-reflection agent, js-fact-checking and simulation skills
- Add self-reflection agent that extracts lessons from merged PRs and proposes updates to copilot-instructions.md - Add GitHub Action workflow (workflow_dispatch) to trigger self-reflection with configurable scan window - Add js-fact-checking skill for verifying JS/TS/Node.js behavioral claims against official documentation before committing them - Add simulation skill for empirically verifying runtime behavior when fact-checking is inconclusive (writes and runs minimal reproduction scripts) - Update daily-code-review agent to use both skills when making fixes that depend on specific runtime behavior - Update pr-verification agent to fact-check behavioral assumptions in verification samples
1 parent cc97f44 commit 01baaa6

6 files changed

Lines changed: 978 additions & 0 deletions

File tree

.github/agents/daily-code-review.agent.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,15 @@ Before opening each PR, you MUST:
205205
- **Never modify package.json** version fields or dependency versions.
206206
- **Never introduce new dependencies.**
207207
- **If you're not sure a change is correct, don't make it.**
208+
- **Fact-check JS/TS/Node.js behavioral claims.** When your fix relies on specific
209+
runtime behavior (e.g., how EventEmitter handles async listeners, Promise.all
210+
rejection semantics), use the `js-fact-checking` skill
211+
(`.github/skills/js-fact-checking/SKILL.md`) to verify against official documentation
212+
before committing the change.
213+
- **Simulate when uncertain.** If fact-checking returns LOW confidence or INCONCLUSIVE,
214+
use the `simulation` skill (`.github/skills/simulation/SKILL.md`) to write and run a
215+
minimal reproduction script that empirically verifies the behavior. Never commit a fix
216+
based on an unverified assumption about runtime behavior.
208217

209218
### Quality Standards
210219
- Match the existing code style exactly (indentation, quotes, naming patterns).

.github/agents/pr-verification.agent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ If verification **failed**, do NOT update labels. Instead:
463463
the specific bug the PR addresses — not generic functionality or synthetic test cases.
464464
- Samples validate the fix under **real SDK usage patterns**, simulating how an external
465465
developer would use the SDK in production code.
466+
- **Fact-check behavioral assumptions.** When writing verification samples that depend
467+
on specific JS/TS/Node.js runtime behavior, use the `js-fact-checking` skill
468+
(`.github/skills/js-fact-checking/SKILL.md`) to verify claims against official docs.
469+
If fact-checking is inconclusive, use the `simulation` skill
470+
(`.github/skills/simulation/SKILL.md`) to run a minimal reproduction first.
466471
- Console output must be captured completely — truncated output is not acceptable.
467472
- Timestamps must use ISO 8601 format.
468473

0 commit comments

Comments
 (0)