Erne learn

From JubaKitiashvili/everything-react-native-expo · View interactive version

Erne learn is an AI agent skill from the GitHub repository JubaKitiashvili/everything-react-native-expo. ERNE — Manual skill generation — runs continuous-learning-v2 scripts to extract patterns from session

How to use this skill

Skill file

/erne-learn — Generate Skills from Session

You are executing the /erne-learn command. This is script-driven — it runs the continuous-learning-v2 pipeline directly.

What This Does

Analyzes the current coding session to extract reusable patterns and save them as skills or rule amendments for future sessions. This is the manual trigger for what PostToolUse hooks do automatically.

Process

  1. Run the extraction script:
node .claude/hooks/scripts/extract-session-patterns.js

This script:

  1. Review candidates:

The script outputs a list of potential learnings:

[PATTERN] Zustand store always uses immer middleware → Suggest rule amendment
[PATTERN] All screens use SafeAreaView wrapper → Suggest coding-style rule
[PATTERN] API calls always retry 3 times → Suggest pattern rule
[SKILL] Complex form validation flow → Suggest skill creation
  1. Approve or reject each candidate:

For each candidate, decide:

  1. Validate new content:
node .claude/hooks/scripts/validate-content.js

Ensures new rules/skills have valid frontmatter and don't conflict with existing content.

When to Use

Note

The automatic PostToolUse hook (continuous-learning-v2.cjs) does lightweight extraction after every tool call. This /erne-learn command runs a comprehensive analysis that catches patterns the real-time hook might miss.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.