.claude/skills/knowledge-base-generator/SKILL.md
Detects when an agent is stuck in a loop hitting the same error or issue repeatedly, then searches the internet (via search-capable MCPs) for matching GitHub issues and known workarounds. Automatically creates or updates an AGENTS.md knowledge base with links and solutions. Triggers on repeated failures, "Same issue" appearing twice, agent looping on the same error, recurring error messages, "still failing", "same error again", "stuck on the same problem".
npx skillsauth add FacuM/yolo-agent knowledge-base-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Detect when an agent is looping on the same issue and break the cycle by searching for known solutions online, then persisting findings in a project-level knowledge base (AGENTS.md).
Activate this skill when the same issue appears more than twice during a session. Indicators include:
Rule of thumb: if you have seen the same error message (or a close paraphrase) three times total, stop retrying and invoke this skill immediately.
This skill relies on MCP tools that can search the web or GitHub. Check for available search tools:
mcp_io_github_git_search_issues or mcp_io_github_git_search_code.search, web, fetch, or browse.If no search-capable MCP is available, inform the user:
I'm stuck on a recurring issue and need to search for known solutions, but no search-capable MCP server is configured. To enable internet search, install one of the following:
- GitHub MCP server — provides
search_issuesandsearch_codetools. See: https://github.com/github/github-mcp-server- Playwright / Browser MCP — enables web browsing and search. See: https://github.com/anthropics/anthropic-quickstarts/tree/main/mcp-server-playwright
- Fetch MCP — allows fetching arbitrary URLs. See: https://github.com/modelcontextprotocol/servers/tree/main/src/fetch
Install one of these, then retry.
webpack, pytest, php, docker).<stable error fragment><language/framework/tool>Use the GitHub MCP search tools to look for matching issues:
Search query: "<stable error fragment>" — scoped to relevant repos if known.
Concrete steps:
tool_search_tool_regex with pattern search_issues|search_code to discover available GitHub search tools.mcp_io_github_git_search_issues, with:
q: the stable error fragment, optionally combined with the framework name.If no GitHub-specific tools are available but a general web/fetch MCP exists:
https://www.google.com/search?q=<URL-encoded error fragment>+site:github.comIf neither GitHub nor web search MCPs are available:
AGENTS.md entry with what is known so far, marking the workaround as TODO: search for "<error fragment>" on GitHub.AGENTS.md)The knowledge base lives at the project root as AGENTS.md.
AGENTS.md does not existCreate it with this structure:
# AGENTS.md
Project-level guidance and known issues for AI agents working on this codebase.
## Knowledge Base
### <Short title describing the issue>
- **Error:** `<exact or representative error message>`
- **Context:** <when/where this occurs>
- **Root cause:** <brief explanation if known>
- **Workaround:**
<steps or code to resolve the issue>
- **Source:** [<issue title or description>](<URL>)
- **Date found:** <YYYY-MM-DD>
AGENTS.md already exists## Knowledge Base heading using the template above.## Knowledge Base section, append the section at the end of the file.AGENTS.md entry to note that the workaround did not resolve the problem and continue searching or escalate to the user.Summarize what was done:
AGENTS.md entry was created/updated with a link to the relevant section.AGENTS.md entry### Docker Compose build fails with "no matching manifest for linux/arm64"
- **Error:** `no matching manifest for linux/arm64/v8 in the manifest list entries`
- **Context:** Running `docker compose build` on Apple Silicon (M1/M2) Macs.
- **Root cause:** The base image does not publish an ARM64 variant.
- **Workaround:**
Add `platform: linux/amd64` to the service in `docker-compose.yml`, or set
`DOCKER_DEFAULT_PLATFORM=linux/amd64` before building.
- **Source:** [moby/moby#42due](https://github.com/moby/moby/issues/42due)
- **Date found:** 2026-02-19
"error" or "failed" produce noisy results.AGENTS.md entries and remove those that have been properly fixed upstream.documentation
Extract frames from a YouTube video and analyze them to identify a sequence of steps. Use when user provides a YouTube URL and wants to understand the process, tutorial, or workflow shown in the video by examining its visual content frame-by-frame. Triggers on "extract steps from video", "what steps does this video show", "analyze YouTube tutorial", "screenshot a video", "figure out the steps".
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment
documentation
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
development
Use when you have a spec or requirements for a multi-step task, before touching code