بنقرة واحدة
learn
Knowledge entries in sage-memory, Docs in .sage/docs/
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Knowledge entries in sage-memory, Docs in .sage/docs/
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
When --quality-locked is active, loop review/revise at each Quality Gate until findings reach a clean bar (no Critical, no Major, only cosmetic Minor) or the iteration cap (10) is reached. Uses a deterministic Python checker for classification and decision logic; agent runs the actual review and revision steps.
Use after implementation passes the quality gates, when a change needs an independent pass over the code before it ships, or when the user asks to "QA this", "check the implementation", or "verify it matches the spec". Applies to Standard and Comprehensive scopes with the Task tool available; Lightweight tasks skip.
Use when the user picks [A] Review at a spec/plan/ADR/root-cause/fix-plan checkpoint, or asks for an independent review before implementation begins. Applies to Standard and Comprehensive scopes with the Task tool available; Lightweight tasks skip.
Use as the code-quality gate after spec-compliance and constitution checks pass, or when the user says "review my code", "quality check", "security review", or "is this code good". Runs as an independent sub-agent when the Task tool is available.
Adversarial review verifying implementation matches its specification — checks completeness (nothing missing) and precision (nothing extra). Distrusts the implementer's self-report. Use after implementation, or when the user says "check against spec", "does this match requirements", or "verify the implementation".
Configure Sage preset and project settings. Switch between base, startup, enterprise, or opensource constitution presets. Use when the user says "configure sage", "change preset", or "sage settings".
| name | learn |
| description | Knowledge entries in sage-memory, Docs in .sage/docs/ |
| disable-model-invocation | true |
Deliberate knowledge capture. Use to onboard to a new codebase, deeply understand a module, or build persistent memory for a project area.
If a path is specified, that's the target — deep dive. If no path, broad scan of the whole project.
Sage: What would you like to learn?
[1] Broad scan — learn the project structure, stack, patterns, conventions [2] Deep dive — learn a specific module, service, or area [3] Something else — describe what you want to understand
Search sage-memory for any prior knowledge about this project or area. Don't re-learn what's already known — build on it.
If prior knowledge exists, summarize: "Sage: I already know [X] about this area from previous sessions. I'll focus on what's new or missing."
Before storing knowledge, present key findings to the user. Wrong knowledge stored in memory persists into future sessions and causes confident wrong actions.
Findings quality checklist — for each finding, verify:
ls? "Has a src/ directory" is inventory. "All business
logic lives in src/domain/, handlers are thin wrappers" is insight.If a finding fails any criterion, improve it before presenting.
Sage: Here's what I found about [area]:
[A] Looks correct — store in memory [R] Some findings are wrong — let me correct them
Do NOT present vague findings and rely on the user to approve them. The user may click [A] without scrutiny. The quality gate is YOUR responsibility, not the user's.
If the user corrects any findings, update before storing. Store the correction as a self-learning entry (Rule 6).
Store each finding by calling the sage_memory_store MCP tool directly.
Each call stores one focused insight:
sage_memory_store(
content: "detailed finding — what, why, implications",
title: "Short specific title (5-15 words)",
tags: ["domain-tag", "area-tag"],
scope: "project"
)
For broad scans, aim for 10-20 calls covering:
For deep dives, aim for 5-10 calls covering:
Tag entries appropriately:
billing, auth)ontology tag for entity relationships and dependencieslearning tag for gotchas or non-obvious behavior discoveredIf sage_memory_store is not available, fall back to .sage-memory/
files. For each finding, create a file using the format defined in the
sage-memory skill's Storage Priority section. Filename = kebab-case title.
Save a human-readable report to .sage/docs/memory-{name}.md.
Follow the sage-memory skill's references/knowledge-report.md guide:
Sage: Learning complete — [area name]
Knowledge stored: • [X] memories in sage-memory • Report: .sage/docs/memory-{name}.md
Key findings: • [Top 3-4 insights, one line each]
[C] Continue — learn another area
Next steps: /build — spec → plan → implement → verify /research — interview → JTBD → opportunity map /reflect — review what you learned, extract patterns
Type a command, or describe what you want to do next.