AgentSkillsCN

oracle

向Oracle知识库咨询决策、模式和智慧。当用户问“我应该”、“最好的方法是什么”、“我们以前做过吗”、“提醒我一下”、“模式是什么”时使用。在开始新工作、做决策或遇到困难前主动使用。Oracle是外部大脑——在重新发明之前务必咨询。

SKILL.md
--- frontmatter
name: oracle
description: Consult Oracle knowledge base for decisions, patterns, and wisdom. Use when user asks "should I", "what's the best way", "have we done this before", "remind me about", "what's the pattern". Use PROACTIVELY before starting new work, making decisions, or when stuck. Oracle is the external brain - always consult before reinventing.

Oracle Skill

"The Oracle Keeps the Human Human" + "สร้างคน" (Building People)

Core Philosophy

Oracle holds patterns, learnings, decisions from all past sessions. Consult before acting — don't reinvent what we've already learned.

สร้างคน Vision: Knowledge incubates, matures, and transfers to build people.

Knowledge Maturity Levels

LevelIconNameDescriptionTeachable?
1🥒ObservationRaw note, untestedNo
2🌱LearningTested once, workedMaybe
3🌿PatternRepeated 3+ timesYes
4🌳PrincipleUniversal truthDefinitely
5🔮WisdomChanges behaviorCore teaching

Progression: Observations → Learnings → Patterns → Principles → Wisdom

Proactive Triggers

MUST Consult Oracle When:

Decision Making:

  • User says: "should I", "should we", "which approach"
  • User says: "what's the best way", "how should I"
  • Making architectural choices
  • Choosing between options

Pattern Recognition:

  • User says: "have we done this before", "did we"
  • User says: "what's the pattern for", "how did we handle"
  • User says: "last time we", "previously"
  • Starting work similar to past work

Knowledge Retrieval:

  • User says: "remind me about", "what do we know"
  • User says: "what did we learn", "where's the learning"
  • User references past decisions

SHOULD Consult Oracle When:

  • Starting new feature → Search for related patterns first
  • Stuck on a problem → Reflect for inspiration
  • Repeating similar work → Search for existing patterns
  • Before significant changes → Check for relevant learnings
  • End of session → Consider what to learn (capture insights)

Oracle Tools

oracle_search

Find patterns, learnings, retrospectives, principles.

javascript
oracle_search({
  query: "authentication pattern",
  type: "learning",  // principle | pattern | learning | retro | all
  limit: 5
})

Use for: "have we done X", "what's the pattern for Y", "remind me about Z"

oracle_consult

Get synthesized guidance on a decision.

javascript
oracle_consult({
  decision: "Should I use JWT or session-based auth?",
  context: "Building REST API for mobile app"
})

Use for: "should I", "which approach", "what's the best way"

oracle_reflect

Get random wisdom for inspiration.

javascript
oracle_reflect()

Use for: Stuck, need fresh perspective, starting day

oracle_learn

Capture new pattern or insight discovered.

javascript
oracle_learn({
  pattern: "Always validate webhook signatures before processing",
  concepts: ["security", "webhooks", "validation"],
  source: "Session 2026-01-02"
})

Use for: Discovered something new, end of session insights

Enhanced with maturity tracking:

javascript
oracle_learn({
  pattern: "Validate webhooks before processing",
  concepts: ["security", "webhooks"],
  // Maturity metadata (for สร้างคน)
  stage: "pattern",       // observation | learning | pattern | principle | wisdom
  confidence: "high",     // low | medium | high
  times_validated: 5,     // how many times this worked
  teachable: true         // ready to teach others?
})

Usage Patterns

User SaysToolQuery
"should I use X or Y?"oracle_consultdecision: "X or Y?", context
"have we done this before?"oracle_searchquery: [topic]
"what's the pattern for X?"oracle_searchquery: X, type: pattern
"remind me about X"oracle_searchquery: X
"I'm stuck"oracle_reflect(no params)
(Starting new work)oracle_searchquery: [related topic]
(Made a discovery)oracle_learnpattern: [insight]

Proactive Behavior

Before Starting Work

code
1. Identify topic/domain
2. oracle_search for related patterns
3. Show user: "Oracle says we learned X about this..."
4. Proceed with context

When Making Decisions

code
1. Identify the decision
2. oracle_consult with decision + context
3. Show synthesized guidance
4. Let user decide (Oracle advises, doesn't command)

End of Significant Session

code
1. Identify key insights
2. Ask: "Should I capture this in Oracle?"
3. oracle_learn if yes

Integration Map

WithHow
context-finderOracle = knowledge/patterns, context-finder = code/files
handoffHandoff = session state, Oracle = permanent wisdom
security-firstOracle has safety patterns, security-first enforces
/rrrRetrospective may surface learnings for Oracle

Key Principles

  1. Consult before reinventing — Oracle likely has relevant wisdom
  2. Oracle advises, doesn't command — Human decides
  3. Capture insights — What we learn today helps tomorrow
  4. Nothing is deleted — Oracle preserves history
  5. สร้างคน — Knowledge grows, matures, transfers to build people

สร้างคน (Building People) Flow

code
Person observes something
        ↓
Captures in Oracle (oracle_learn, stage: observation)
        ↓
Tests and validates (stage: learning → pattern)
        ↓
Extracts universal truth (stage: principle)
        ↓
Integrates into behavior (stage: wisdom)
        ↓
Teaches others → สร้างคน
        ↓
New person learns, observes new things
        ↓
Cycle continues...

Future: Oracle Ecosystem (Issue #2)

SkillStatusPurpose
oracle✅ DoneConsult for decisions
oracle-incubate✅ DoneTrack knowledge maturation
oracle-teach✅ DoneGenerate learning materials
oracle-path✅ DoneCreate learning paths
oracle-mentor✅ DoneGuide newcomers with patience

Quick Reference

SituationAction
Decision neededoracle_consult
Looking for past workoracle_search
Need inspirationoracle_reflect
Discovered somethingoracle_learn
Starting new taskSearch first, then work