{"slug": "user-reported-bug-skill-to-help-the-agent-debug", "title": "User reported bug skill to help the agent debug", "summary": "A new OpenCode skill enforces a red-test-first workflow for bug reports, requiring the agent to reproduce the bug, write a failing test, log it, and only then propose a fix. The skill, available on GitHub, automatically triggers when a user reports a bug and ensures the test remains in the suite to prevent regressions.", "body_md": "OpenCode skill that enforces red-test-first when you report a bug. Instead of jumping to a fix, the agent reproduces the bug, writes a failing test that captures the symptom, logs it in a ledger, and only then proposes a fix.\n\nClone this repo directly into your OpenCode skills directory:\n\n```\ngit clone https://github.com/Anhydrite/user-reported-bug-skills.git ~/.config/opencode/skills/user-reported-bug\n```\n\nRestart OpenCode. The skill triggers automatically when you report a bug (e.g. \"j'ai un bug\", \"this is broken\", \"ça ne marche pas\").\n\n**Reproduce first.** The agent must see the bug fail before writing any test.**Red test before fix.** A failing test that asserts expected behavior is written and confirmed red.**USER_FOUND tag.** Every bug gets a comment block and a row in the ledger (`docs/testing/user-found-bugs.md`\n\n).**Fix only after the test exists.** The fix is verified by the red test turning green.**Guard test stays.** The test remains in the suite to catch regressions.\n\n**Acknowledge & reproduce**— agent reproduces the bug in a controlled way** Write the red test**— asserts expected behavior, fails because bug is unfixed** Confirm red**— test is run, must fail** Tag & ledger**—`// USER_FOUND`\n\ncomment + entry in`docs/testing/user-found-bugs.md`\n\n**Fix**— minimal fix, red test turns green, no regressions** Update ledger**— status becomes FIXED with commit hash", "url": "https://wpnews.pro/news/user-reported-bug-skill-to-help-the-agent-debug", "canonical_source": "https://github.com/Anhydrite/user-reported-bug-skills", "published_at": "2026-06-13 21:08:38+00:00", "updated_at": "2026-06-13 21:16:33.335375+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents"], "entities": ["OpenCode", "GitHub", "Anhydrite"], "alternates": {"html": "https://wpnews.pro/news/user-reported-bug-skill-to-help-the-agent-debug", "markdown": "https://wpnews.pro/news/user-reported-bug-skill-to-help-the-agent-debug.md", "text": "https://wpnews.pro/news/user-reported-bug-skill-to-help-the-agent-debug.txt", "jsonld": "https://wpnews.pro/news/user-reported-bug-skill-to-help-the-agent-debug.jsonld"}}