/prometheus-skill-pack:learn-goalfrom prometheus-skill-pack
Entry point for the Feynman learning flow. Accepts a learning desire, assembles a grounded corpus (public and/or custom KB), runs an honest feasibility gate with sycophancy-correction, and produces a goal artifact that downstream learn-* skills consume.
Ships in prometheus-skill-pack. 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.
Invoked when the user wants to begin a learning journey. Examples:
The skill gates all downstream learn-* skills. Nothing runs until a valid
goal.json artifact exists.
Use ui-surface (Tier 1 preferred) to gather:
| Field | Prompt | Valid values |
|---|---|---|
subject | "What do you want to learn?" | Any non-empty string |
target_level | "What proficiency level are you aiming for?" | novice / practitioner / expert |
weekly_hours | "How many hours per week can you commit?" | Positive number |
total_weeks | "How many weeks is your learning window?" | Positive integer |
kb_id | "Do you have a private knowledge base to include? (optional)" | dify:, palace:, local:, or blank |
Collect fields sequentially if the user's initial message is missing any. Do not proceed to corpus assembly until all required fields are present.
Resolve LEARN_GOAL_DIR as the directory containing this SKILL.md, then run
the bundled content-grounding.sh with the subject and level:
bash "${LEARN_GOAL_DIR}/scripts/content-grounding.sh" \
--subject "$SUBJECT" \
--level "$TARGET_LEVEL" \
--budget-sources 10 \
--output "${GOAL_DIR}/corpus-public.json"
If --kb was provided, also run content-grounding-kb.sh and merge the
sources arrays. KB sources go first — higher authority for the custom domain:
bash "${LEARN_GOAL_DIR}/scripts/content-grounding-kb.sh" \
--kb "$KB_ID" \
--subject "$SUBJECT" \
--level "$TARGET_LEVEL" \
--output "${GOAL_DIR}/corpus-kb.json"
Merge rule: sources = kb_sources + public_sources, deduplicated by source_ref.
Write the merged corpus to ${GOAL_DIR}/corpus.json.
Use the assembled corpus to estimate realistic time-to-mastery for the target
level. Express as a range: N–M weeks at P hours/week.
Ground the estimate in the corpus sources where possible. If corpus is thin, use well-established domain heuristics (e.g., Dreyfus model stage times).
Do not invent optimistic numbers. Err toward honesty.
Compare the research-derived estimate to the operator's stated availability:
operator_hours_total = weekly_hours × total_weeks
estimate_lower_hours = lower_bound_weeks × P_hours_per_week
| Color | Condition |
|---|---|
| GREEN | operator_hours_total ≥ 80% of estimate_lower_hours |
| YELLOW | operator_hours_total is 40–79% of estimate_lower_hours |
| RED | operator_hours_total < 40% of estimate_lower_hours |
Before showing the feasibility assessment to the user, detect sycophantic
patterns via the sycophancy-correction MCP tool:
detect_sycophancy(text: <draft_feasibility_assessment>)
If sycophancy is detected (score ≥ 0.3 or any HIGH/CRITICAL pattern):
Use ui-surface to present the feasibility result:
{
"intent_type": "feedback",
"title": "Feasibility: <COLOR>",
"body": "<sycophancy-corrected assessment>",
"options": null,
"multiselect": false,
"metadata": {"feasibility": "<COLOR>"}
}
RED: Recommend a more modest scope (lower target level) or longer timeline. Ask the user if they want to adjust and re-run, or proceed with explicit acknowledgment of the difficulty.
YELLOW: Proceed with explicit acknowledgment: "This is achievable but tight. You will need to protect your learning time consistently."
GREEN: Proceed.
Do not automatically adjust the goal on the user's behalf. The user decides.
After the user confirms the goal (adjusted or original), call scripts/write-goal.sh:
GOAL_JSON=$(jq -n \
--arg goal_id "$GOAL_ID" \
--arg subject "$SUBJECT" \
--arg target_level "$TARGET_LEVEL" \
--argjson weekly_hours "$WEEKLY_HOURS" \
--argjson total_weeks "$TOTAL_WEEKS" \
--arg feasibility "$FEASIBILITY" \
--arg feasibility_note "$FEASIBILITY_NOTE" \
--arg corpus_path "${GOAL_DIR}/corpus.json" \
--arg kb_id "${KB_ID:-null}" \
--arg created_at "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
'{
goal_id: $goal_id,
subject: $subject,
target_level: $target_level,
weekly_hours: $weekly_hours,
total_weeks: $total_weeks,
feasibility: $feasibility,
feasibility_note: $feasibility_note,
corpus_path: $corpus_path,
kb_id: (if $kb_id == "null" then null else $kb_id end),
created_at: $created_at
}')
bash "${SKILL_DIR}/scripts/write-goal.sh" --goal-json "$GOAL_JSON"
When the goal artifact is written and the learner has produced a final explanation of the subject (or, when the goal is handed to feynman-loop, once that loop closes), persist what was learned so the next prompt on this topic is
answered from the knowledge base instead of triggering another
[prometheus-gap] suggestion (emitted by karpathy-hook-dispatch.sh, design
docs/design/team-aware-learning-memory.md §4).
Ingest the final explanation as a Lesson. Use project scope by default; use
shared scope (with --yes) only when the topic is generic and not specific to
this project:
# project scope (default)
printf '%s' "$EXPLANATION_TEXT" | pk ingest --type Lesson --source "learn-goal:${GOAL_ID:-manual}" --tag learn
# generic topic -> shared scope
printf '%s' "$EXPLANATION_TEXT" | pk ingest --type Lesson --scope shared --yes --source "learn-goal:${GOAL_ID:-manual}" --tag learn
Mark the matching knowledge gap resolved in
~/.prometheus/knowledge-gaps/gaps.jsonl:
python3 "${CLAUDE_PLUGIN_ROOT:-$PROMETHEUS_PLUGIN_ROOT}/shared/scripts/lib/prompt_gap.py" \
resolve --topic "$SUBJECT" --by learn-goal --scope project
This appends one record per matching open gap (same topic key, or at least two shared keywords with the subject):
{"ts":"<utc>","status":"resolved","topicKey":"<16 hex>","topic":"<gap topic>","resolvedBy":"learn-goal","scope":"project"}
The latest record per topicKey wins; an open record is any gap whose
latest record has status:"open". The step never fails the flow: with no
pk on PATH, skip step 1 and tell the user the explanation was not persisted;
with no matching gap, step 2 prints nothing.
{
"goal_id": "string (uuid-like, e.g. learn-rust-borrow-20240628-a3f2)",
"subject": "string",
"target_level": "novice|practitioner|expert",
"weekly_hours": 5,
"total_weeks": 8,
"feasibility": "GREEN|YELLOW|RED",
"feasibility_note": "string — honest 1–3 sentence assessment",
"corpus_path": "string — absolute path to corpus.json",
"kb_id": "string|null",
"created_at": "ISO 8601 datetime"
}
Combine subject slug + target level + date + 4-char random suffix:
SLUG=$(echo "$SUBJECT" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]\+/-/g' | sed 's/^-//;s/-$//')
DATE=$(date -u +"%Y%m%d")
SUFFIX=$(head -c 4 /dev/urandom | xxd -p | head -c 4)
GOAL_ID="${SLUG}-${TARGET_LEVEL}-${DATE}-${SUFFIX}"
Goal files live at: ~/.prometheus/learn/goals/<goal-id>/
If the user provides a --kb flag or mentions a specific knowledge domain:
Prompt for the KB identifier if not already given:
dify:<name> — Dify knowledge basepalace:<id> — surreal-memory palace IDlocal:<path> — local directory of documentsRun content-grounding-kb.sh --kb <id> alongside the public corpus call.
Merge: KB sources precede public sources in the sources array.
Record kb_id in the goal artifact so downstream skills can re-query the
same KB without asking the user again.
| Scenario | Estimate | Operator budget | Color | Honest note |
|---|---|---|---|---|
| Quantum field theory in 2 weeks at 4h/week | 3–5 years at 20h/week | 8 hours total | RED | QFT requires years of foundational physics first. 2 weeks builds only surface familiarity at best. |
| Python basics in 4 weeks at 10h/week | 3–6 weeks at 8–10h/week | 40 hours total | GREEN | Solid foundation is achievable in this window with consistent practice. |
| ML fundamentals in 6 weeks at 5h/week | 8–12 weeks at 8h/week | 30 hours total | YELLOW | Possible but tight. Priority focus on core concepts; some breadth will be deferred. |
After writing goal.json, print:
Goal recorded: <subject> (<target_level>) — feasibility: <COLOR>
Next: /learn-survey <goal-id>
Downstream skills read ~/.prometheus/learn/goals/<goal-id>/goal.json for
all context they need. They do not re-prompt the user for fields already
captured here.
skills/learn/learn-goal/
├── SKILL.md — this file
└── scripts/
└── write-goal.sh — writes goal.json to ~/.prometheus/learn/goals/<id>/
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-skill-pack218 skills in this plugin
/actor-modelTokio-native actor model pattern for Prometheus AGS projects. Implements actors as tokio tasks communicating via mpsc channels with a typed message enum, enabling safe concurrent state management without shared locks. Used in UAR session management, pk-librarian event broadcasting, and parking-lot scheduler design. Use when a component needs to own state exclusively while serving concurrent callers.
/adversarial-reviewIsolated, cross-model adversarial review of KBD artifacts and change diffs. Dispatches a fresh-context LLM judge over an OpenAI-compatible REST gateway (openai-proxy or `liter-llm api`) with an explicit mandate to find problems — the model that produced an artifact or change is never the model that reviews it. Runs as a pipeline stage inside kbd-assess/analyze/plan (artifact mode) and kbd-execute's single phase-boundary QA step (diff mode, once over the whole phase diff). Findings are severity-bucketed (CRITICAL/WARNING/SUGGESTION) and the judge's own report is screened by sycophancy-correction before it is surfaced.
/agent-team-creatorCreate, revise, package, and deploy agent-team definitions with staged questions and native exports for UAR, Codex, Claude Code, Copilot, Kimi Code, MiniMax CLI, OpenCode and DeepSeek. Use for team definition and catalog lifecycle; use agent-team-manage for active runtime task state.Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026