Skip to content

Simplify agent governance and unify AI instructions - #80

Merged
evertonschuster merged 3 commits into
mainfrom
docs/simplify-agent-instructions
Aug 3, 2026
Merged

Simplify agent governance and unify AI instructions#80
evertonschuster merged 3 commits into
mainfrom
docs/simplify-agent-instructions

Conversation

@evertonschuster

Copy link
Copy Markdown
Owner

What changed

  • makes .agents/skills/ the canonical skill source and synchronizes it to .claude/skills/
  • reduces CLAUDE.md files to thin imports of the corresponding AGENTS.md
  • adds the repository-wide GitHub Copilot instruction bridge
  • removes duplicated prompt, agent, local-skill, Graphify, and obsolete documentation layers
  • converts exploratory frontend QA into a portable skill
  • simplifies volatile or overly detailed guidance and adds governance regression checks

Why

The repository had several overlapping Markdown instruction layers, duplicated skills, and stale implementation details. That increased context usage and could give Codex, Claude Code, and GitHub Copilot conflicting guidance.

Impact

Agents now share one durable instruction hierarchy while loading specialized workflows only when relevant. Tool-local state is ignored, removed Graphify content is guarded against reintroduction, and CI validates the cross-agent layout.

Validation

  • python scripts/sync_agent_skills.py --check
  • python scripts/check_agent_governance.py
  • python scripts/architecture_guard.py
  • 110 governance tests
  • dotnet build backend/AdminBackend.slnx
  • dotnet test backend/AdminBackend.slnx
  • frontend format, lint, build, and coverage checks
  • 305 frontend tests passed

Move large copy-paste reference material out of SKILL.md into dedicated reference files and add a frontend page/UI conventions reference. Added backend templates: references/templates.md (under .agents, .claude, and agent-skills). Added frontend page/UI conventions: references/page-ui-conventions.md (under .agents, .claude, and agent-skills). Updated SKILL.md files to link to the new references and removed the inlined template/content, and trimmed AGENTS.md entries to point readers to the new skill references. Also consolidated some historical ADR notes in backend/AGENTS.md. This keeps SKILL.md concise and centralizes reusable templates/conventions for backend and frontend work.
Promote .agents/skills as the single editable skill source and remove legacy instruction copies and tool-specific reviewer files. Add a lightweight GitHub Copilot bridge (.github/copilot-instructions.md), a frontend exploratory QA skill, and tighten CLAUDE/.gitignore handling for local agent state. Update scripts and tests to use .agents/skills (sync/check), adjust governance checks, CI job description, docs (AGENTS.md/CLAUDE.md/ADR refs), and many SKILL.md texts to the new paths and wording. Misc: README/monorepo docs tweaks and prettierignore cleanup. Ensures a single canonical workflow for agents and CI guards detect regressions.
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 145 files, which is 45 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 84602ef3-59d2-441a-bf9a-77172c438181

📥 Commits

Reviewing files that changed from the base of the PR and between 5bc004b and 52ca963.

📒 Files selected for processing (145)
  • .agents/skills/agenza-api-contract-review/SKILL.md
  • .agents/skills/agenza-architecture-review/SKILL.md
  • .agents/skills/agenza-backend-new-service/SKILL.md
  • .agents/skills/agenza-backend-use-case/SKILL.md
  • .agents/skills/agenza-exception-flow-audit/SKILL.md
  • .agents/skills/agenza-frontend-exploratory-qa/SKILL.md
  • .agents/skills/agenza-frontend-feature/SKILL.md
  • .agents/skills/agenza-frontend-feature/references/api-integration.md
  • .agents/skills/agenza-frontend-feature/references/page-ui-conventions.md
  • .agents/skills/agenza-frontend-feature/references/testing.md
  • .agents/skills/agenza-rule-persistence/SKILL.md
  • .agents/skills/agenza-tenant-isolation-review/SKILL.md
  • .agents/skills/evolve-modular-architecture/SKILL.md
  • .claude/agents/agenza-architecture-reviewer.md
  • .claude/agents/agenza-contract-reviewer.md
  • .claude/agents/agenza-exception-auditor.md
  • .claude/agents/agenza-tenant-reviewer.md
  • .claude/settings.local.json
  • .claude/skills/agenza-api-contract-review/SKILL.md
  • .claude/skills/agenza-architecture-review/SKILL.md
  • .claude/skills/agenza-backend-new-service/SKILL.md
  • .claude/skills/agenza-backend-use-case/SKILL.md
  • .claude/skills/agenza-exception-flow-audit/SKILL.md
  • .claude/skills/agenza-frontend-exploratory-qa/SKILL.md
  • .claude/skills/agenza-frontend-feature/SKILL.md
  • .claude/skills/agenza-frontend-feature/references/api-integration.md
  • .claude/skills/agenza-frontend-feature/references/page-ui-conventions.md
  • .claude/skills/agenza-frontend-feature/references/testing.md
  • .claude/skills/agenza-rule-persistence/SKILL.md
  • .claude/skills/agenza-tenant-isolation-review/SKILL.md
  • .claude/skills/evolve-modular-architecture/SKILL.md
  • .github/copilot-instructions.md
  • .github/workflows/agent-governance.yml
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • README.md
  • agent-skills/agenza-api-contract-review/SKILL.md
  • agent-skills/agenza-architecture-review/SKILL.md
  • agent-skills/agenza-backend-use-case/SKILL.md
  • agent-skills/agenza-exception-flow-audit/SKILL.md
  • agent-skills/agenza-frontend-feature/SKILL.md
  • agent-skills/agenza-migration-safety/SKILL.md
  • agent-skills/agenza-rule-persistence/SKILL.md
  • agent-skills/agenza-tenant-isolation-review/SKILL.md
  • agent-skills/evolve-modular-architecture/SKILL.md
  • agent-skills/evolve-modular-architecture/references/decision-framework.md
  • agent-skills/evolve-modular-architecture/references/fitness-functions.md
  • agent-skills/evolve-modular-architecture/references/migration-playbook.md
  • agent-skills/evolve-modular-architecture/references/source-notes.md
  • agent-skills/evolve-modular-architecture/references/templates.md
  • agent-skills/evolve-modular-architecture/scripts/collect_architecture_evidence.py
  • agent-skills/split-large-coderabbit-pr/SKILL.md
  • apps/admin-frontend/.agent.md
  • apps/admin-frontend/.prettierignore
  • apps/admin-frontend/.skills/admin-api-contract/SKILL.md
  • apps/admin-frontend/.skills/admin-feature-vertical/SKILL.md
  • apps/admin-frontend/.skills/admin-tdd-conventions/SKILL.md
  • apps/admin-frontend/AGENTS.md
  • apps/admin-frontend/CLAUDE.md
  • apps/admin-frontend/docs/API.md
  • apps/admin-frontend/docs/DECISIONS.md
  • apps/admin-frontend/docs/STATUS.md
  • apps/admin-frontend/docs/adr/005-shadcn-ui-component-library.md
  • apps/admin-frontend/docs/adr/006-single-auth-source-and-tenant-boundary.md
  • apps/admin-frontend/docs/adr/008-app-container-facade-split.md
  • apps/admin-frontend/docs/adr/009-feature-based-modularization.md
  • apps/admin-frontend/docs/adr/010-put-body-id-and-external-numeric-validation.md
  • apps/admin-frontend/docs/adr/011-http-client-decoder-boundary.md
  • apps/admin-frontend/docs/adr/014-catalog-result-errors-and-global-net.md
  • apps/admin-frontend/docs/adr/015-auth-result-errors.md
  • apps/admin-frontend/docs/adr/016-remove-tags-frontend.md
  • apps/admin-frontend/docs/adr/README.md
  • apps/admin-frontend/graphify-out/.graphify_labels.json
  • apps/admin-frontend/graphify-out/.graphify_python
  • apps/admin-frontend/graphify-out/.graphify_root
  • apps/admin-frontend/graphify-out/GRAPH_REPORT.md
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/010a69b73127716a89b336d0e6027d0f066102485541c9ebf1e2fb6b273a6126.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/0bff8d003cbfd9b75abbe94b6017890688fb016d9cd9e4474bba08706c61d3d0.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/0c34ade59e9769c174ab25be41720f31c2bd1c797f0bee7c00391fd164abae52.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/141cf472a6c63bb2adfc043e0c663c4ca39742644e3039cc93b96b84d022f64e.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/1df8de670dd1febedc2554ced3c9a2b5215fc68cad16d4b8dc2b7b64943a7f17.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/20798fb4a9d9b6f3593cdd371ca98fa15a5d57c1bf9bfc489039b5595b7028ff.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/20dc01bba5753874a3746d18250b5b5d71aebbfbdfda5305a6dfc2541adb209b.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/24332da3a5839bca3276206674c0c6119f653c3dd2b01e2f5b37194a02d185f8.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/3aa066773301fd07106a7926663f6ca3931ebf19bcacce7e156ead4e8446121a.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/678bc23efa73439ac107fddd35e640e583d68b45ab0c119be3ba50a81553e99d.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/6a9064e8fb13487a3a621e0dbb7bd8c82245b9c904b0c2dbcf3ce5fe55506b9c.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/6db0aa99aece6ebd17bbc27c5e5287a462fb39cc4a2ca3a82a6277c166bdb3a0.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/9dd56caa8fa28b5494661ce7c97d756013f200ac4e60f619671f4d4eca46faa6.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/c94f2d13aabe67bf5766093bbd03c9b9e5580deadc230f73ad6421b3ec0bf290.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/d0038c1f6c4208a560ea4669eefc633b8460563cc29fcbc3c0d6c44309916f62.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/d0b0ee2878cb9efe03dfbf9327e5038d7a10eabd56ad9b1321c45eff1447e98d.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/d571f11fd4274692937568cb770a19c830c585c6cef79f550d5c27340871a18f.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/dd427fbe45aac0d22b4b75cd3738b4f19bb6b9203413d57e83eb402c992e636d.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/e959718c238b3e07a1780e4ab7828238990b8561d28361a2afd2ccad62b941a7.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/f5104aea4b990fe94fe2eacb0323c2128b3f66f11d3fc388538530dada2db808.json
  • apps/admin-frontend/graphify-out/cache/ast/v0.9.8/f99a890a7c2de1e26a154549cb667ee9a884327e25ddbd6380ab23a986570ffc.json
  • apps/admin-frontend/graphify-out/cache/semantic/006b7da94b10b3d5d0c001968c16046e5a8fd2ef70d7e7a8b2db9cff92e4a3a1.json
  • apps/admin-frontend/graphify-out/cache/semantic/0d796317a126ce9e51f38c8054499148ef6c3ba2f18a7b3f741c397ef5ced968.json
  • apps/admin-frontend/graphify-out/cache/semantic/0e5e531cc7a8986593ccf1ab8497db9c94c5d6631301a1c52349931f34fa9ae7.json
  • apps/admin-frontend/graphify-out/cache/semantic/1902ad9650dabab71d145c262ceb47559c17c49094af55b2f6aae7abdbce37c2.json
  • apps/admin-frontend/graphify-out/cache/semantic/2e9906cf88503ada29fd9a9826d6e9f7a78bad27dec7a2ac2b38a1dfe36130ef.json
  • apps/admin-frontend/graphify-out/cache/semantic/321850e5728abff0bb641538aa2df718b5295392e00fb17e49ff018fbdfe8be3.json
  • apps/admin-frontend/graphify-out/cache/semantic/3587e95a5fad882303fd30f3c5431c4d66a30e9cbe07f69a9a0062c878ec1f68.json
  • apps/admin-frontend/graphify-out/cache/semantic/42b29bf1a089ee99701714d72191b43a3c785ec87296979c1e9b0525f762f310.json
  • apps/admin-frontend/graphify-out/cache/semantic/44316b9e5de692d589c906aba6651261e448e2dc5acbade5461eacae518c0528.json
  • apps/admin-frontend/graphify-out/cache/semantic/7bb5613b8b1b90594cc46f31bf1056350d00f2cc2cad87e99c7adbec29f4ff37.json
  • apps/admin-frontend/graphify-out/cache/semantic/86a9adeaa6314d438329d2e9a1afc5d56146e36c62945da4105aa5e89f415d47.json
  • apps/admin-frontend/graphify-out/cache/semantic/892990fa5e09648dab3c25af3670bec40a7f09601c3c5096959840060ebeac14.json
  • apps/admin-frontend/graphify-out/cache/semantic/933e4671ad638c69fdcf0b8d8b1a65cb3a7fad6139993b8c2cbc737c6c15eefe.json
  • apps/admin-frontend/graphify-out/cache/semantic/9a655b848851a94c8346bb0597f76a744100240815e736a035955af887cf73b7.json
  • apps/admin-frontend/graphify-out/cache/semantic/b387c02c6b89e00e196358fb912991ac7b576fc46ba7808f4d330de9659c8f91.json
  • apps/admin-frontend/graphify-out/cache/semantic/cb4276dfc58c71ad5fbef8adae46bb40213b681284b59454f2a0739bcd2b4847.json
  • apps/admin-frontend/graphify-out/cache/stat-index.json
  • apps/admin-frontend/graphify-out/cost.json
  • apps/admin-frontend/graphify-out/graph.html
  • apps/admin-frontend/graphify-out/graph.json
  • apps/admin-frontend/graphify-out/manifest.json
  • backend/.skills/backend-new-microservice/SKILL.md
  • backend/.skills/backend-use-case/SKILL.md
  • backend/AGENTS.md
  • backend/CLAUDE.md
  • backend/README.md
  • docs/AGENT-GOVERNANCE.md
  • docs/HARDENING_REPORT.md
  • docs/MONOREPO.md
  • docs/QUALITY.md
  • docs/SDD-GUIDE.md
  • docs/VISION.md
  • docs/adr/0011-domain-entities-validated-entirely-by-validators.md
  • docs/adr/0016-ai-agent-governance-framework.md
  • docs/adr/0017-schema-scoped-migrations-history-table.md
  • docs/adr/README.md
  • prompts/agent-task-template.md
  • prompts/architecture-review-template.md
  • prompts/backend-feature-template.md
  • prompts/frontend-feature-template.md
  • prompts/frontend-refactor-comments-componentization.md
  • prompts/frontend-typescript-react-type-modeling.md
  • prompts/teste-tela-qa-acessibilidade.prompt.md
  • scripts/architecture_guard.py
  • scripts/check_agent_governance.py
  • scripts/sync_agent_skills.py
  • scripts/tests/test_check_agent_governance.py

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@evertonschuster
evertonschuster marked this pull request as ready for review August 3, 2026 22:17
@evertonschuster
evertonschuster merged commit f0d5172 into main Aug 3, 2026
18 checks passed
@evertonschuster
evertonschuster deleted the docs/simplify-agent-instructions branch August 3, 2026 22:20
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