Skip to content
Back to skills

Learn

ASecurity

Use when a build uncovers a spec gap, design miss or lesson worth recording.

  • 14 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added August 31, 2026
ai-agentsgobash

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add chan4lk/specclaw --skill learn --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Learn?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Learn
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/chan4lk-learn/badge)](https://www.skillsdirectory.com/skills/chan4lk-learn)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Use when a build uncovers a spec gap, design miss or lesson worth recording.
---

# specclaw learn

**First, run** `specclaw-ensure-init .specclaw` — idempotently creates `.specclaw/` if it doesn't exist (silent if already initialized; auto-inits using the current directory's basename as the project name).

Capture build learnings — spec gaps, design misses, and patterns discovered during implementation.

**Log a learning:**
```bash
specclaw-log-learning .specclaw <change> <category> <priority> "<detail>" ["<action>"]
```

Categories: `spec_gap` | `design_gap` | `pattern` | `best_practice` | `agent_issue`
Priorities: `low` | `medium` | `high`

**List learnings for a change:**
```bash
specclaw-log-learning .specclaw <change> --list
```

**Promote a learning** to the repo-local knowledge base:
```bash
specclaw-log-learning .specclaw <change> --promote <id>
```

Promote writes to `.specclaw/knowledge/` — **never to the plugin itself**:
- `spec_gap`, `design_gap` → `.specclaw/knowledge/spec-guidelines.md`
- `pattern`, `best_practice`, `agent_issue` → `.specclaw/knowledge/agent-hints.md`

The build agent receives `agent-hints.md` as context automatically on every task.

**When to log:**
- A build revealed a spec gap (requirements unclear or missing)
- A design decision needed mid-build adjustment
- Agents discovered a useful pattern worth reusing
- Parallel tasks created conflicts (duplicate code, shared deps)
- An agent struggled with the context or instructions

Learnings are stored in `.specclaw/changes/<change>/learnings.md` and feed the pattern detection system for cross-change analysis (see `/specclaw-extras:patterns`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.