AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Continuous Learning

skill-manastalukdar-ai-devstudio-continuous-learning · by manastalukdar

Extract repeated patterns from archived sessions and offer to convert them into reusable skills

— No reviews yet
0 installs
39 views
0.0% view→install

Install

$ agentstack add skill-manastalukdar-ai-devstudio-continuous-learning

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-manastalukdar-ai-devstudio-continuous-learning)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Continuous Learning? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Continuous Learning

Scan archived session logs to surface recurring manual workflows, then offer to convert high-frequency patterns into new SKILL.md stubs so repeated work becomes permanent automation.

Usage

/continuous-learning              # Scan all archived sessions for patterns
/continuous-learning --min 2      # Lower threshold (default: 3 repetitions)
/continuous-learning --generate   # Auto-generate stubs without prompting

Behavior

Phase 1: Discover sessions

# Find all archived session files (not the active .current-session pointer)
find .claude/sessions -name "*.md" -not -name ".current-session" 2>/dev/null | sort

If fewer than 3 session files exist, report "Not enough session history yet (need 3+)" and exit.

Phase 2: Extract commands and workflows

Scan each session file for lines that match invocation patterns:

# Commands invoked (slash commands, skill names)
grep -h -E "^/[a-z]|^\*\*Command\*\*:|Ran:|Invoked:" .claude/sessions/**/*.md 2>/dev/null \
  | sed 's|.*: ||' | sort | uniq -c | sort -rn | head -40

Also extract multi-step sequences: look for clusters of 3+ consecutive commands that appear together in at least --min sessions.

Phase 3: Build pattern registry

Load or create .claude/cache/continuous-learning/patterns.json:

{
  "last_scan": "2026-06-04T00:00:00Z",
  "patterns": [
    {
      "commands": ["/security-scan", "/review", "/test"],
      "frequency": 5,
      "sessions": ["session-a.md", "session-b.md"],
      "candidate_name": "quality-gate"
    }
  ]
}

Merge new findings with prior registry. Patterns that drop below --min threshold are removed.

Phase 4: Present findings

Display a ranked table of patterns that meet the threshold:

Repeated patterns found across your sessions:

  Rank  Frequency  Pattern
  ────  ─────────  ───────────────────────────────────────────
  1     7x         /security-scan → /review → /test
  2     5x         /find-todos → /fix-todos → /commit
  3     4x         /db-diagram → /migration-generate → /seed-data
  4     3x         /brainstorm → /write-plan → /implement

Convert any of these to a skill? (enter rank, or 'none'):

Phase 5: Generate skill stub (if requested)

For the chosen pattern, emit a SKILL.md stub using the skillify template:

---
name: 
description: 
disable-model-invocation: false
risk: safe
---

# 

## Usage

\`/\`

## Behavior

1. Run `/step-one`
2. Run `/step-two`
3. Run `/step-three`

## Token Optimization

**Expected range**: 200–600 tokens (delegates to constituent skills)
**Early exit**: Each constituent skill handles its own early exit.
**Patterns used**: Delegation to existing skills

Save to skills//SKILL.md and confirm location to user. Do not commit.

Examples

No patterns yet:

/continuous-learning
→ Scanned 2 session files — need at least 3 to detect patterns.
  Run more sessions, then try again.

Patterns found:

/continuous-learning
→ Scanned 8 sessions. Found 3 repeated patterns (threshold: 3x).
  [table shown]
  Convert #1 to a skill? → User enters "1"
  → Stub written: skills/quality-gate/SKILL.md

Token Optimization

Expected range: 400–900 tokens (initial scan), 150–300 tokens (cache hit)

Caching: Stores pattern registry in .claude/cache/continuous-learning/patterns.json. On subsequent runs, only sessions newer than last_scan are re-processed; old results are merged from cache.

Early exit: Exits immediately if fewer than 3 archived session files exist.

Patterns used: Grep-before-Read (scan with grep, never read full session files into context), Bash for system queries, progressive disclosure (summary table before detail), early exit.

Edge Cases

  • No sessions directory: Reports setup instructions and exits.
  • Sessions with no command lines: Skips those files silently.
  • Candidate name collision with existing skill: Appends -2 suffix and warns user.
  • User declines all patterns: Exits cleanly with "Nothing converted."

Safety

  • Never deletes or modifies existing skills or session files.
  • Skill stubs are written to skills/ only — not installed to ~/.claude/skills/ automatically.
  • Does not commit anything; user must run /commit explicitly.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.