Skip to content

Enhance documentation and configuration for graphify and PRP core - #11

Merged
rodrigorjsf merged 2 commits into
mainfrom
development
Apr 22, 2026
Merged

rodrigorjsf merged 2 commits into
mainfrom
development

Conversation

@rodrigorjsf

Copy link
Copy Markdown
Owner

This pull request standardizes PRP agent prompt structures and codifies key process and engineering policies by introducing new reference documents and updating agent and rule files to reference them. The main themes are: (1) enforcing a single authoritative agent prompt style, (2) documenting artifact lifecycle, context management, and execution policies, and (3) updating agent/rule files to align with these standards and reference the new documentation.

Agent Prompt Structure Standardization:

  • Added .claude/references/agent-prompt-style.md, defining a required prompt structure for all agents, including a critical role declaration, explicit boundaries, core responsibilities, strategy, and output format.
  • Updated all agent prompt files (e.g., .claude/agents/codebase-analyst.md, .claude/agents/prp-advisor.md, .claude/agents/web-researcher.md, etc.) to follow the new structure and reference the style guide. [1] [2] [3] [4] [5]

Process and Artifact Policy Documentation:

  • Added .claude/references/artifact-lifecycle.md to define artifact locations, lifecycle rules, and naming conventions for all PRP outputs.
  • Added .claude/references/context-budget-policy.md to formalize context window management, compaction checkpoints, and brief size limits.
  • Added .claude/references/execution-policy.md to specify when to stay inline, delegate to subagents, parallelize, or use evaluation harnesses.
  • Added .claude/references/harness-taxonomy.md to classify all PRP components as artifact, advisory, or utility, and clarify their roles.

Engineering and Rule Alignment:

  • Introduced .claude/rules/harness-engineering.md to summarize critical engineering conventions, context management, artifact discipline, and progressive disclosure policies.
  • Updated rule files (e.g., .claude/rules/agent-conventions.md, .claude/rules/artifact-paths.md, .claude/rules/prp-workflow.md) to reference the new authoritative documents and clarify quick-reference guidance for developers. [1] [2] [3] [4]
  • Added or clarified dev-only comments in rule files to indicate they are not shipped with the plugin. [1] [2] [3]

These changes collectively ensure that all PRP agents, skills, and engineering practices follow a single, well-documented set of standards, improving maintainability and predictability across the codebase.

rodrigorjsf and others added 2 commits April 22, 2026 14:11
* docs: add graphify skill documentation

Adds graphify skill reference and invocation instructions to both
.github/copilot-instructions.md and CLAUDE.md to guide users on
knowledge graph functionality.

* chore: ignore graphify output cache

Add graphify-out/cache/ to .gitignore to exclude generated
knowledge graph cache files from version control.

* feat: add graphify MCP configuration

Add .graphifyignore to exclude internal graphify directories and
.mcp.json to configure the graphify MCP server for local development.

* docs: add comprehensive documentation for AI agent protocols

Introduces new documentation files covering various AI agent communication protocols, including A2A, MCP, and ACP, along with their applications, architectural paradigms, and future directions. The updates aim to standardize understanding and facilitate interoperability among AI agents, enhancing collaborative capabilities across diverse systems. Key documents include a detailed guide on AI agent protocols, a summary of emerging communication standards, and insights into fluid human-agent collaboration.

* feat(prp-core): add shared harness reference layer

Add five shared reference files to both the shipped plugin and the
.claude/ dev mirror:
- harness-taxonomy.md: component class definitions (artifact/advisory/utility)
- context-budget-policy.md: smart-zone, compaction, and brief size rules
- execution-policy.md: four delegation modes (inline/subagent/parallel/harness)
- artifact-lifecycle.md: PRP artifact locations, naming, and archival rules
- agent-prompt-style.md: HumanLayer-inspired one-job/hard-boundary/fixed-output structure

Shipped and mirror copies are identical line-for-line.
Grounded in wiki/knowledge/harness-engineering.md and context-engineering.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* feat(repo): add prp-core prompt evaluation harness

Add a repo-only deterministic contract checker for the prp-core plugin:
- scripts/prp_core_prompt_eval.py: runner with --list, --case, --all flags
- tests/prp-core/prompt-cases.json: 6 cases (plan, implement, review, issue-fix, mirror-parity, hook-schema)
- tests/prp-core/fixtures/: example request fixtures for each workflow family
- tests/prp-core/README.md: docs and usage guide
- .github/workflows/prp-core-prompt-evals.yml: CI on plugin/mirror/script changes

Harness checks: required contract strings in skills, shipped/mirror parity,
and research-team-stop.sh six-section schema alignment.
Contract checks (plan/implement/review/issue-fix) intentionally FAIL now
and will PASS after Task 3 updates skills with shared contract language.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* feat(prp-core): standardize context and agent contracts

Add Context Contract section to 12 skills referencing shared
context-budget-policy and execution-policy references.

Normalize 5 orchestration-heavy agents (codebase-analyst,
codebase-explorer, plan-critic, prp-advisor, web-researcher)
with HumanLayer-inspired CRITICAL one-job declaration, explicit
DO NOT boundaries, and pointer to agent-prompt-style.md.

All changes mirrored to .claude/ mirror. Eval harness: 6/6 pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* refactor(rules): link guardrail rules to shared references

artifact-paths.md and agent-conventions.md now point to the
authoritative policy files in plugins/prp-core/references/
instead of duplicating policy inline.

Hook shell syntax verified. Eval harness: 6/6 pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* docs: refresh documentation for harness evolution

- plugins/prp-core/README.md: add references/ section with policy file table
- plugins/prp-core/CLAUDE.md: update version note and add references/ scope
- docs/prp-core-harness-architecture.md: new — component taxonomy, budget
  policy, delegation modes, agent structure, plugin vs repo boundaries
- docs/prp-core-prompt-evals.md: new — harness usage, test case guide, CI
- README.md: add references/ and docs/ to repository layout tree

Eval harness: 6/6 pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: update plugin version

* refactor(references): remove external HumanLayer attribution

Plugin artifacts must be self-contained. Replace the external
source attribution in agent-prompt-style.md with an inline
description of the pattern itself.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: add .gitattributes to manage linguist-generated files

Introduce a new .gitattributes file to mark specific directories as linguist-generated, including .claude/, docs/, graphify-out/, and wiki/. This helps improve repository statistics and file handling in GitHub.

* chore: update .gitattributes to remove linguist-generated markers

Modify the .gitattributes file to remove the linguist-generated markers for the .claude/, docs/, graphify-out/, and wiki/ directories, ensuring they are no longer treated as generated files by GitHub Linguist.

* chore: update .gitattributes to correctly mark directories as linguist-generated

Revise the .gitattributes file to ensure that the .claude/, docs/, graphify-out/, and wiki/ directories are properly marked as linguist-generated, improving file handling in GitHub.

* chore: update .gitignore to include autoresearch-ref and PDF files

Add autoresearch-ref directory and a rule to ignore all PDF files in the .gitignore, improving file management and reducing clutter in the repository.

* chore: remove outdated documentation files

Delete several obsolete documentation files related to the PRP Core Harness Architecture, Prompt Evaluations, and agent protocols, streamlining the repository and removing clutter. This includes the removal of files that no longer align with the current project structure and focus.

* chore: update .gitignore to ignore docs directory

Modify the .gitignore file to include the docs/ directory, enhancing file management and reducing clutter in the repository.

* chore: remove deprecated documentation and query files

Delete multiple outdated documentation files and query markdowns from the graphify-out directory, including various agent protocols, structured outputs, and context engineering documents. This cleanup enhances repository organization and aligns with the current project focus.

* refactor(memory): improve-claude pass — harness priorities, bloat removal, rule fixes

- Root CLAUDE.md: replace skills inventory table with weighted Priorities section
  (Smart Zone/Harness-First/Subagent Isolation/Artifact-First/Progressive Disclosure);
  add rubber-duck to root-only extras; add pre-creation prp-advisor instruction;
  shorten graphify trigger to 1 line; net −6 lines
- wiki/CLAUDE.md: fix typo; remove vague overview sentence and directory listing
  block (agent-inferable via filesystem); net −9 lines
- prp-workflow.md: remove functionally-dead 'Before Creating' pre-creation section
  (path-scope chicken-and-egg bug); disambiguate 'the skill's' → prp-prd/prp-plan
- plugins/prp-core/CLAUDE.md: remove stale version header (high-churn inventory)
- .claude/rules/: add dev-only marker to 4 unshipped rules that cover plugin paths
- NEW .claude/rules/harness-engineering.md: path-scoped harness conventions with
  5 weighted priorities grounded in context-budget-policy.md and wiki
- NEW .claude/rules/reference-conventions.md: authoring conventions for references/
- NEW .github/instructions/harness-engineering.instructions.md: Copilot review
  checks for smart zone, harness rails, subagent isolation, plugin boundary,
  artifact discipline

Always-loaded tokens: ~480 → ~330 (net −150 tokens)
Eval harness: 6/6 pass

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* update(graph_report): adjust word count and refine corpus check summary

- GRAPH_REPORT.md: updated word count from ~358,130 to ~358,074 words; refined the corpus check summary to maintain clarity and relevance.

* docs(plugin): ship harness-engineering rule + full artifact registry in README

- Add plugins/prp-core/rules/harness-engineering.md (plugin-facing version):
  user-relevant paths only (.claude/**/*.md, *.prd.md, *.plan.md), no dev eval
  command, references use relative references/ path. Ships the same 5 smart-zone
  priorities as the dev mirror so plugin users get harness enforcement too.
- Fix plugins/prp-core/rules/prp-workflow.md: disambiguate 'the skill's' →
  'prp-prd skill's' and 'prp-plan skill's' to match the dev mirror fix.
- Expand plugins/prp-core/README.md with full artifact registry:
  every skill (why it exists, what it produces, upstream/downstream connections),
  every agent (class, role, invoked by), both rules (why each ships), both hooks
  (structural contract each enforces), all 5 references (why + used by), artifact
  directory tree with per-directory purpose, and workflow overview diagram.
  Rules count table updated 1 → 2.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* update(graph_report): increment word count and confirm corpus adequacy

- GRAPH_REPORT.md: increased word count from ~358,074 to ~359,895 words; reaffirmed that the corpus is sufficiently large to enhance graph structure value.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rodrigorjsf
rodrigorjsf merged commit 87038bf into main Apr 22, 2026
1 check passed
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.

1 participant