AgentSkillsCN

kingdom-navigator

当用户探讨“三位一体评分”“五大支柱”“眞善美孝永”“哲学理念”“伦理AI决策”,或就AFO Kingdom的指导原则展开讨论时,可使用此技能。它将为您提供全面的指导,帮助您将五大支柱的哲学理念融入开发决策之中。

SKILL.md
--- frontmatter
name: kingdom-navigator
description: This skill should be used when the user asks "where is", "find file", "navigate to", "project structure", "which file handles", or needs to locate specific functionality in the AFO Kingdom codebase. Provides intelligent navigation based on MAP_OF_KINGDOM.md and CONTEXT_COMPASS.yaml.
version: 1.0.0
license: MIT
compatibility:
  - claude-code
  - codex
  - cursor
metadata:
  category: navigation-discovery
  author: AFO Kingdom
  map_version: "2025.01"
allowed-tools:
  - Read
  - Glob
  - Grep
  - Bash
  # MCP tools (optional - AFO Kingdom 환경에서만 지원)
  # - mcp__context7__*
standalone: true

AFO Kingdom Navigator

Your guide to navigating the AFO Kingdom codebase. Uses the royal map and compass to find any destination.

Kingdom Structure

code
./
├── packages/                 # Core packages (monorepo)
│   ├── afo-core/            # Backend (FastAPI, Chancellor)
│   ├── trinity-os/          # Philosophy engine
│   ├── dashboard/           # Frontend (Next.js 16)
│   └── sixXon/              # CLI interface
├── .claude/                  # Claude Code configuration
│   ├── commands/            # 25 slash commands
│   ├── agents/              # Autonomous agents
│   └── mcp.json             # 9 MCP servers
├── skills/                   # 23 skill modules
├── scripts/                  # 400+ automation scripts
├── tools/                    # 44 tool packages
├── docs/                     # 240+ documentation files
└── tests/                    # Test suites

Quick Navigation Guide

By Domain

DomainPathKey Files
Backend APIpackages/afo-core/api/, AFO/
Trinity Scorepackages/trinity-os/trinity_os/core/, servers/
Frontend UIpackages/dashboard/src/app/, components/
CLIpackages/sixXon/docs/SIXXON_*.md
MCP Serverspackages/trinity-os/trinity_os/servers/*_mcp.py

By Functionality

NeedLocation
Trinity Score calculationpackages/trinity-os/trinity_os/servers/trinity_score_mcp.py
Chancellor orchestrationpackages/afo-core/api/chancellor_v2/
3 Strategists logicpackages/afo-core/AFO/chancellor/
Dashboard componentspackages/dashboard/src/components/
API endpointspackages/afo-core/api/
Skills definitionsskills/*/SKILL.md
Commands.claude/commands/*.md

By File Type

File TypeGlob Pattern
Python sourcepackages/**/*.py
TypeScriptpackages/dashboard/**/*.tsx
Commands.claude/commands/*.md
Skillsskills/*/SKILL.md
MCP servers**/servers/*_mcp.py
Teststests/**/*.py

Reference Documents

DocumentPathPurpose
MAP_OF_KINGDOMdocs/MAP_OF_KINGDOM.mdComplete documentation index
CONTEXT_COMPASS.claude/CONTEXT_COMPASS.yamlNavigation guide
CLAUDE.md (Root)CLAUDE.mdMaster guidelines
SSOTdocs/AFO_FINAL_SSOT.mdSingle source of truth

Navigation Commands

Use these to explore:

bash
# Find all Trinity-related files
Glob: **/trinity*.py

# Find Chancellor implementation
Grep: "class Chancellor"

# Find API endpoints
Grep: "@router\." path:packages/afo-core/api

# Find skill definitions
Glob: skills/*/SKILL.md

MCP Server Locations

ServerPath
afo-ultimate-mcptrinity_os/servers/afo_ultimate_mcp_server.py
trinity-score-mcptrinity_os/servers/trinity_score_mcp.py
afo-skills-mcptrinity_os/servers/afo_skills_mcp.py
afo-obsidian-mcptrinity_os/servers/obsidian_mcp.py
context7External (npx @upstash/context7-mcp)
sequential-thinkingExternal (npx)
memoryExternal (npx)
mcp-docker-gatewayDocker (111 tools)

Port Map (Local Kingdom)

ServicePortPackage
Dashboard3000dashboard
Soul Engine API8010afo-core
PostgreSQL15432infrastructure
Redis6379infrastructure
Ollama11435infrastructure

Common Searches

"Where is the Trinity Score calculated?"packages/trinity-os/trinity_os/servers/trinity_score_mcp.py

"Where are the API routes?"packages/afo-core/api/

"Where is the dashboard home page?"packages/dashboard/src/app/page.tsx

"Where are the 3 strategists?"packages/afo-core/AFO/chancellor/

"Where is the Claude configuration?".claude/ (commands, agents, mcp.json)

Pro Tips

  1. Use Glob for pattern-based file discovery
  2. Use Grep for content-based search
  3. Check docs/MAP_OF_KINGDOM.md for documentation index
  4. Reference .claude/CONTEXT_COMPASS.yaml for context guidance
  5. All paths are relative to ./