ワンクリックで
learning-loop
Protocol for QA, error verification, and skill evolution to prevent recurring bugs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Protocol for QA, error verification, and skill evolution to prevent recurring bugs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | learning-loop |
| description | Protocol for QA, error verification, and skill evolution to prevent recurring bugs. |
This skill defines the protocol for verifying fixes and updating the knowledge base to prevent future errors.
Trigger: Immediately after applying a fix for a reported or discovered error (compiler error, runtime crash, logic bug).
Action:
Trigger: User confirms the fix worked. Note: If the user says "it works, now do X", you MUST execute the learning loop for the fix BEFORE starting task X.
Action:
tailwind-4 for styling issues, typescript for type errors, or astro-6 for architecture issues).AGENTS.md or ask to create a new skill.[!CAUTION] format below.You must document WHY it failed and HOW to solve it correcty.
> [!CAUTION]
> **AVOID** [Specific Pattern/Code]
> **BECAUSE** [Reason/Context/Side-effect]
> **CORRECT APPROACH**: [Solution/Best Practice]
If the error was an invalid hook call inside a Server Component:
Target File: .agent/skills/nextjs-16/SKILL.md
Append:
> [!CAUTION]
> **AVOID** using React hooks (`useState`, `useEffect`) directly in Server Components.
> **BECAUSE** Next.js 16 defaults to Server Components where client-only hooks cannot run, causing a runtime error.
> **CORRECT APPROACH**: Add `"use client"` at the very top of the file, or extract the interactive piece into a smaller Client Component.
When you encounter a similar task in the future, ALWAYS check the relevant SKILL.md for these [!CAUTION] blocks before generating code.
The protocol does not store everything in a single giant file. By separating content into folders (e.g., .agent/skills/nextjs-16/, .agent/skills/tailwind-4/, .agent/skills/typescript/), information is fragmented into digestible pieces.
Benefit: I only read the "Skill" relevant to the current task, saving memory and processing time.
When a list of [!CAUTION] blocks becomes too long, the protocol evolves:
From Rules to Patterns: If there are 10 distinct errors about handling dates, instead of 10 separate warnings, create a single "Standard Operating Procedure" (SOP) in the SKILL.md summarizing the definitive way to work with dates.
Hierarchy: Critical rules (system-breaking) remain at the top; subtler ones are archived or integrated into style guides.
As the project grows, the repository becomes an engineering asset.
For You: It serves as an encyclopedia of why certain technical decisions were made (historical context).
For New Developers (or IAs): Instead of weeks of training, they simply read the Skills to understand exactly what NOT to do.
If a problem arises that does not fit into any existing skill, it likely indicates a missing skill category.
Action:
ui/AGENTS.md) to append the new skill to the Skills Reference and Auto-invoke Skills tables.AGENTS.md file for the new skill (e.g., it belongs to a completely new domain like backend/ or cron/), you must create a new AGENTS.md file in that directory outlining its specific rules. Then, you MUST link this newly created AGENTS.md file into the root GEMINI.md file. Do NOT bloat the root GEMINI.md with every micro-skill. GEMINI.md routes to AGENTS.md (Domain Agents), and AGENTS.md routes to SKILL.md (Micro-skills).Reglas para generar imágenes de la marca Cacomi, asegurando la inclusión del logo oficial.
Convención para el uso de la carpeta archivos_locales_no_git, destinada a archivos de trabajo, datos exportados y recursos temporales que no deben subirse al repositorio.
Protocol for daily updates to the recommended menu and other periodic content. Trigger: When the user requests a "daily menu update" or modifies `astro_src/constants/recommendedMenu.ts`.
Standards and strategies for offline capabilities, network detection, and caching fallback in Cacomi.
Ensures application changes comply with Terms & Conditions, Privacy Policy (GDPR/ARCO), and data protection standards. Trigger: Before merging PRs, when modifying data storage (db/cookies), or adding user-facing disclaimers.
Estándares y patrones de seguridad, integración con Koyeb, Recharts y moderación para el Panel de Administrador.