Skip to content

feat: Improve quality of rpi-agent.agent.md#1949

Open
jkim323 wants to merge 23 commits into
mainfrom
improve-rpi-agent
Open

feat: Improve quality of rpi-agent.agent.md#1949
jkim323 wants to merge 23 commits into
mainfrom
improve-rpi-agent

Conversation

@jkim323

@jkim323 jkim323 commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Pull Request

Description

Refactors verbose wording in the RPI Agent instructions while preserving the same workflow rigor and behavior. This change tightens repeated guidance across the agent file, especially around validation and discovery, so the instructions are easier to maintain and read without changing when or how the agent performs Research, Plan, Implement, Review, or Discover phases.

Following updates have been made:

  • New Execution Model by Phase table (under Difficulty Levels): Consolidates the per-difficulty guidance that was previously scattered as inline bullet lists across every phase. The table content matches what was already present; it centralizes rather than changes the rules.
  • Tracking Artifacts section restructured into a table: Replaced seven separate Artifact Name subsections (each with a "Path:" line, "Create this..." paragraph, and bullet list) with a single table listing all artifacts with their paths and creation conditions.
  • Terminology normalization: "document-backed" → "artifact-backed" and "heavier-weight workflow" → "artifact-backed model" throughout. Consistent naming, no semantic shift.
  • Phase 5 discovery - Step 2: Reason About Next Work: Collapsed 6 verbose question-pair bullets into 5 concise category statements. All six original discovery categories are preserved — they're just expressed more concisely.
  • Removed duplicate bullet: The duplicated validation list in Phase 4 Step 2 now references Phase 3 Step 3 instead of repeating the same four bullets.

Related Issue(s)

Fixes #1939

Type of Change

Select all that apply:

Code & Documentation:

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Infrastructure & Configuration:

  • GitHub Actions workflow
  • Linting configuration (markdown, PowerShell, etc.)
  • Security configuration
  • DevContainer configuration
  • Dependency update

AI Artifacts:

  • Reviewed contribution with prompt-builder agent and addressed all feedback
  • Copilot instructions (.github/instructions/*.instructions.md)
  • Copilot prompt (.github/prompts/*.prompt.md)
  • Copilot agent (.github/agents/*.agent.md)
  • Copilot skill (.github/skills/*/SKILL.md)

Note for AI Artifact Contributors:

  • Agents: Research, indexing/referencing other project (using standard VS Code GitHub Copilot/MCP tools), planning, and general implementation agents likely already exist. Review .github/agents/ before creating new ones.
  • Skills: Must include both bash and PowerShell scripts. See Skills.
  • Model Versions: Only contributions targeting the latest Anthropic and OpenAI models will be accepted. Older model versions (e.g., GPT-3.5, Claude 3) will be rejected.
  • See Agents Not Accepted and Model Version Requirements.

Other:

  • Script/automation (.ps1, .sh, .py)
  • Other (please describe):

Sample Prompts (for AI Artifact Contributions)

User Request:

Execution Flow:

Output Artifacts:

Success Indicators:

For detailed contribution requirements, see:

Testing

Checklist

Required Checks

  • Documentation is updated (if applicable)
  • Files follow existing naming conventions
  • Changes are backwards compatible (if applicable)
  • Tests added for new functionality (if applicable)

AI Artifact Contributions

  • Used /prompt-analyze to review contribution
  • Addressed all feedback from prompt-builder review
  • Verified contribution follows common standards and type-specific requirements

Required Automated Checks

The following validation commands must pass before merging:

  • Markdown linting: npm run lint:md
  • Spell checking: npm run spell-check
  • Frontmatter validation: npm run lint:frontmatter
  • Skill structure validation: npm run validate:skills
  • Link validation: npm run lint:md-links
  • PowerShell analysis: npm run lint:ps
  • Plugin freshness: npm run plugin:generate
  • Docusaurus tests: npm run docs:test

Security Considerations

  • This PR does not contain any sensitive or NDA information
  • Any new dependencies have been reviewed for security issues
  • Security-related scripts follow the principle of least privilege

Additional Notes

This update is not intended to change the behavior of the agent - only to improve readability and quality.

@jkim323 jkim323 marked this pull request as ready for review June 14, 2026 18:34
@jkim323 jkim323 requested a review from a team as a code owner June 14, 2026 18:34
@codecov-commenter

codecov-commenter commented Jun 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.27%. Comparing base (44b42d4) to head (229446e).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1949      +/-   ##
==========================================
+ Coverage   81.24%   81.27%   +0.02%     
==========================================
  Files         127      115      -12     
  Lines       18831    18545     -286     
  Branches       12        0      -12     
==========================================
- Hits        15300    15072     -228     
+ Misses       3528     3473      -55     
+ Partials        3        0       -3     
Flag Coverage Δ
docusaurus ?
pester 86.04% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 19 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bindsi bindsi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved: the RPI agent guidance cleanup is consistent with the surrounding terminology and documentation patterns. No actionable issues found.

@katriendg katriendg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good refactoring that achieves its readability goal with a net -71 lines. The terminology normalization, Execution Model table, and Tracking Artifacts table are all clear improvements.

Requesting changes for one required edit (RI-4: missing explicit simple/medium bullet in Phase 1 Step 1) and two recommended fixes where semantic content was lost during compression (RI-1: Review Log content, RI-2: Iterate/Escalate display guidance).

Priority order:

  1. RI-4 — Required: restore explicit simple/medium bullet in Phase 1 Step 1
  2. RI-1 — Recommended: restore Review Log content specification
  3. RI-2 — Recommended: add display guidance to Iterate/Escalate bullets
  4. RI-3 — Non-blocking: abstraction tradeoff observation

Comment thread .github/agents/hve-core/rpi-agent.agent.md
Comment thread .github/agents/hve-core/rpi-agent.agent.md
Comment thread .github/agents/hve-core/rpi-agent.agent.md Outdated
Comment thread .github/agents/hve-core/rpi-agent.agent.md

@bindsi bindsi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved: the RPI agent refactor preserves the intended guidance while improving readability and consistency. I did not find actionable schema or artifact issues in the current head.

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Eval Execution

Status: Failed

  • Artifacts evaluated: 1
  • Specs run: 2
  • Assertions passed: 209
  • Assertions failed: 82
  • Failed specs: 2
Artifact Kind Status Passed Failed
rpi-agent agent ❌ fail 209 82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Improve rpi agent file

7 participants