بنقرة واحدة
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 المهني
Guidelines for Domain-Driven Design and Clean Architecture dependency rules. Trigger: When creating new UseCases, Repositories, or planning module structure.
Guidelines for using Drizzle ORM with SQLite. Trigger: When writing SQL queries, migrations, or modifying schema definitions.
Expo Managed Workflow guidelines. Trigger: When configuring app.json, installing native libraries, or dealing with permissions/plugins.
FontStock Database Schema and Seeding. Trigger: When defining tables, relations, or initial data.
FontStock business logic for inventory (expiry, search indexing). Trigger: When calculating dates, validating product inputs, or implementing search filters.
FontStock Navigation guidelines (Expo Router). Trigger: When adding routes, links, or configuring layouts.
| 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 error (compiler error, runtime crash, logic bug).
Action:
Trigger: User confirms the fix worked.
Action:
react-native-style for layout issues, typescript-strict for type errors, or drizzle-orm for SQL issues).AGENTS.md.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 Text strings must be rendered within a <Text> component:
Target File: skills/react-native-style/SKILL.md
Append:
> [!CAUTION]
> **AVOID** placing raw strings directly inside `<View>` or `<TouchableOpacity>`.
> **BECAUSE** React Native requires all text to be wrapped in `<Text>` components, otherwise it throws a runtime error.
> **CORRECT APPROACH**: Always wrap labels in `<Text>Label</Text>`.
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., skills/auth/, skills/ui/, skills/database/), 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: