Skip to content

docs: consolidate agent guidance in AGENTS.md and improve mistake-reflection workflow#1059

Open
sokoliva wants to merge 4 commits intoa2aproject:mainfrom
sokoliva:skills
Open

docs: consolidate agent guidance in AGENTS.md and improve mistake-reflection workflow#1059
sokoliva wants to merge 4 commits intoa2aproject:mainfrom
sokoliva:skills

Conversation

@sokoliva
Copy link
Copy Markdown
Member

@sokoliva sokoliva commented May 8, 2026

Description

Restructures the AI/agent guidance for this repo around three changes:

  1. Promotes AGENTS.md to the source of truth for agent instructions; reduces GEMINI.md to a redirect stub.
  2. Adds a mistake-reflection workflow — a cross-agent SKILL.md plus an evidence_rules.md for graduated learnings.
  3. Trims mandatory_checks.md to use the existing scripts/lint.sh instead of restating its commands.

Why move from GEMINI.md to AGENTS.md

AGENTS.md is the cross-agent convention now supported by Gemini, Claude Code, OpenCode, Cursor, Codex CLI, etc. — a single file every modern agent auto-loads. GEMINI.md is Gemini-specific.

Mistake reflection workflow

When you notice the agent made a mistake:

  1. Tell it. A simple "no, that's wrong" or "where do you see this?" should auto-trigger the mistake-reflection skill. If it doesn't, ask explicitly: "load the mistake-reflection skill."
    If you're using OpenCode (or a similar agent CLI that supports skills), you'll see mistake-reflection listed under /skills once the session has discovered it.
  2. Review the new entry the agent appends to docs/ai/ai_learnings.md (gitignored, local-only). Make sure the root cause and proposed rule actually match the mistake.
  3. If the rule is generally useful, ask the agent to promote it to docs/ai/evidence_rules.md (or another tracked file) so future sessions see it. Otherwise leave it in the journal — or delete it if it's a one-off.

@sokoliva sokoliva requested a review from a team as a code owner May 8, 2026 11:29
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request formalizes the AI agent workflow by introducing a 'Mistake Reflection' skill and establishing AGENTS.md as the central guide for project architecture and mandatory procedures. It also adds evidence_rules.md to define standards for codebase claims and streamlines the mandatory check process. Review feedback suggests updating the mistake-reflection skill to include the new evidence rules, removing brittle line-number references to .gitignore, and addressing minor formatting and clarity issues.

Comment thread .agents/skills/mistake-reflection/SKILL.md Outdated
Comment thread .agents/skills/mistake-reflection/SKILL.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
@sokoliva sokoliva requested a review from ishymko May 8, 2026 11:51
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