/erne-universal:continuous-learning-v2from erne-universal
Auto-generates skills and rules from observed React Native development patterns. Captures repeated fixes via a PostToolUse hook, clusters observations, and converts them into persistent rules and skills with user approval.
Ships in erne-universal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill manages the continuous learning pipeline — observing patterns during development sessions and converting them into persistent rules and skills.
PostToolUse hook (real-time)
→ `continuous-learning-observer.cjs` (lightweight pattern capture)
→ patterns stored in .claude/memory/observations/
/learn command (manual, comprehensive)
→ `extract-session-patterns.js` (full session analysis)
→ `analyze-patterns.js` (pattern clustering + dedup)
→ skill-generator prompt (create new content)
→ `validate-content.js` (verify new content is valid)
/retrospective command (session end)
→ `evaluate-session.js` (quality metrics + suggestions)
The continuous-learning-observer.cjs hook runs on PostToolUse events. It:
.claude/memory/observations/ as JSON/learn)When the user runs /learn, the pipeline:
.claude/rules/ or .claude/skills//retrospective)At session end, evaluate-session.js:
See config.json for tuning parameters:
observationThreshold: How many times a pattern must repeat before flagging (default: 3)maxObservationsPerSession: Prevent memory bloat (default: 100)autoApprove: If true, auto-approve low-risk content (default: false)contentTypes: What types to generate — ["rule", "skill"]agent-prompts/pattern-analyzer.md (opens in a new tab)agent-prompts/skill-generator.md (opens in a new tab)config.json (opens in a new tab)hook-templates/evaluate-session.cjs.template (opens in a new tab)hook-templates/observer-hook.cjs.template (opens in a new tab)scripts/analyze-patterns.js (opens in a new tab)scripts/extract-session-patterns.js (opens in a new tab)scripts/validate-content.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: hooks: PreToolUse/PermissionRequest hooks are declared at the top level outside "hooks" (or under an unrecognized key) — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed, author: Invalid input: expected object, received string
.claude-plugin/plugin.json: hooks: PreToolUse/PermissionRequest hooks are declared at the top level outside "hooks" (or under an unrecognized key) — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed, author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
8 skills in this plugin
/coding-standardsEnforce React Native coding standards as an actionable workflow/higApple HIG design intelligence — build, review, animate, and analyze with Apple Human Interface Guidelines for React Native/Expo/native-module-scaffoldGuided wizard for creating Turbo Modules and Expo Modules with iOS and Android implementations/performance-optimizationStep-by-step performance diagnosis and optimization for React Native apps/security-reviewMobile security audit for React Native applications/tdd-workflowTest-driven development workflow for React Native — Jest, React Native Testing Library, and DetoxOther plugins' skills for the same job