skills/learning-loop/SKILL.md
Protocol for QA, error verification, and skill evolution to prevent recurring bugs.
npx skillsauth add luisdavidtf/vindex learning-loopInstall 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.
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:
documentation
Guidelines for global state management with Zustand. Trigger: When creating global stores, shared UI state, or managing session data.
development
TypeScript strict patterns and best practices. Trigger: When implementing or refactoring TypeScript in .ts/.tsx (types, interfaces, generics, const maps, type guards, removing any, tightening unknown).
development
Guidelines for styling in React Native (Flexbox, StyleSheet). Trigger: When styling components, fixing layout issues, or adding visual effects.
tools
Professional standards for Git version control, branching, and commit messages.