ai-toolkit-rules
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
Searches past coding sessions for observations, decisions, context. Triggers: mem-search, recall session, past work, prior decisions, session history.
$ npx -y skills add softspark/ai-toolkit --skill mem-search --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/mem-searchContext preview
The summary Claude sees to decide when to auto-load this skill.
Searches past coding sessions for observations, decisions, context. Triggers: mem-search, recall session, past work, prior decisions, session history.
name: mem-search description: "Searches past coding sessions for observations, decisions, context. Triggers: mem-search, recall session, past work, prior decisions, session history." effort: medium argument-hint: "[search query]" allowed-tools: Bash, Read user-invocable: true
Search the persistent memory database for past coding observations, decisions, and context.
$ARGUMENTS
This skill queries the SQLite FTS5 full-text search index at `~/.softspark/ai-toolkit/memory.db` to find relevant observations from past sessions.
1. **Parse the search query** from `$ARGUMENTS`. If empty, prompt the user for a query.
2. **Initialize the database** if it does not exist:
python3 "$HOME/.softspark/ai-toolkit/hooks/../plugins/memory-pack/scripts/init_db.py" 2>/dev/null || true
3. **Run the FTS5 search** against the observations table:
sqlite3 ~/.softspark/ai-toolkit/memory.db "
SELECT o.id, o.session_id, o.tool_name, o.content, o.created_at,
s.project_dir, s.summary
FROM observations_fts fts
JOIN observations o ON o.id = fts.rowid
LEFT JOIN sessions s ON s.session_id = o.session_id
WHERE observations_fts MATCH '<query>'
ORDER BY rank
LIMIT 10;
"Replace `<query>` with the user's search terms. Escape single quotes by doubling them.
4. **Progressive disclosure** -- present results in two stages:
**Stage 1: Summary view** (show first)
## Memory Search: "<query>" Found N results across M sessions. | # | Session | Project | Tool | Time | Preview | |---|---------|---------|------|------|---------| | 1 | abc123 | /path | Edit | 2025-01-15 | First 80 chars... |
**Stage 2: Detail view** (on request) Show the full observation content, session summary, and related observations from the same session.
5. **If no results found**, suggest:
/mem-search "postgres migration rollback"
Typical output:
## Memory Search: "postgres migration rollback" Found 3 results across 2 sessions. | # | Session | Project | Tool | Time | Preview | |---|---------|------------------|------|------------|--------------------------------------| | 1 | abc123 | magento2-os | Edit | 2026-03-12 | Rolled back 0042_add_tax_col... | | 2 | def456 | magento2-b2b | Bash | 2026-02-28 | pg_dump before schema migration... | | 3 | abc123 | magento2-os | Read | 2026-03-12 | Reviewed migration safety checklist |
AI coding toolkit with machine-enforced safety, 116 skills, 44 agents, lifecycle hooks, persona presets, opt-in plugin packs, and benchmark tooling.
Repo: softspark/ai-toolkit
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG,…
Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent,…
Analyzes code quality, complexity, patterns across codebase. Triggers: quality report,…
API design: naming, versioning, pagination, idempotency, OpenAPI, error contracts and safe…
App scaffolding: Next.js, Vite, Nuxt, Astro, FastAPI, Django, Laravel, RN, Flutter. Triggers:…