plugins/khuym/skills/gkg/SKILL.md
Codebase intelligence support skill for Khuym using the gkg MCP tools. Use when planning or discovery needs an architecture snapshot, file/definition discovery, existing-pattern evidence, importer lookups, or a quick symbol trace in a supported repo. Primary path: scout readiness with `node .codex/khuym_status.mjs --json`, then `repo_map` plus `search_codebase_definitions` plus `read_definitions`.
npx skillsauth add hoangnb24/skills gkgInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
If .khuym/onboarding.json is missing or stale for the current repo, stop and invoke khuym:using-khuym first.
Do not start with which gkg or any imagined gkg <subcommand> discovery flow.
Run:
node .codex/khuym_status.mjs --json
Use the scout output as the source of truth for this repo:
gkg_readiness.supported_repo = false: do not force gkg; use the fallback section below.gkg_readiness.server_reachable = false: gkg is not ready for query work yet.gkg_readiness.project_indexed = false: do not pretend MCP discovery is ready. Hand back to khuym:using-khuym readiness or follow the scout's recommended_action.In this repo, readiness is exposed through the scout. Treat that as the normal operator path.
Use gkg as a discovery accelerator, not as a replacement for reading files.
Strong, normal-path tools in this repo:
list_projectsindex_projectrepo_mapsearch_codebase_definitionsread_definitionsHelper-only tool:
import_usageNon-core, lower-confidence tools:
get_referencesget_definitionThe practical rule is simple: use repo_map plus search_codebase_definitions plus read_definitions first, then fall back to local inspection whenever symbol-linking looks thin or suspicious.
Use this path by default during Khuym planning and other codebase discovery work.
repo_mapUse first for unfamiliar areas. It is the best starting point for a compact architecture snapshot.
Use it to answer:
When discovery is being written down for planning, save the result or summary to history/<feature>/discovery.md under ## Architecture Snapshot.
search_codebase_definitionsUse next to find candidate symbols, classes, functions, constants, or handlers related to the feature.
Good uses:
Keep search terms concrete and code-shaped. Prefer symbol names or narrow domain phrases over prose.
read_definitionsUse immediately after search_codebase_definitions to read the strongest matches in full.
This is the main evidence-gathering step. It is usually better than hopping file-to-file manually because it keeps discovery centered on actual definitions instead of filenames alone.
When planning writes formal discovery output, summarize the findings in history/<feature>/discovery.md under ## Existing Patterns.
list_projectsUse as a light sanity check when the scout says gkg should work and you want to confirm the repo is present in the index.
Do not treat this as the primary readiness check. The scout comes first.
index_projectUse to refresh an indexed project when the index is stale or after significant repo changes.
Do not use this as the first response to project_indexed = false in the scout unless the surrounding readiness workflow explicitly called for it. In this repo, first-time indexing is surfaced by the scout and typically handled by the scout's recommended action.
import_usageUse only as a helper for importer discovery.
Good uses:
Do not use it as a general substitute for repo_map or search_codebase_definitions.
get_referencesTreat as non-core and low-confidence in this repo.
Use it only when:
rgIf it misses callers, gives a thin set, or returns ambiguous results, fall back immediately to rg -n "<symbol>" and nearby file inspection.
get_definitionTreat as non-core and low-confidence in this repo.
Use it only as a quick jump helper from a known call site to a likely definition. Always confirm with read_definitions or a direct file read before relying on it.
If it cannot resolve the symbol cleanly, do not fight it. Fall back to search_codebase_definitions, read_definitions, and rg.
Use this skill mainly during khuym:planning discovery work.
repo_map feeds the architecture snapshot.search_codebase_definitions plus read_definitions feed the existing-pattern evidence.import_usage can help confirm importer spread when that matters to the approach.get_references and get_definition are optional spot tools, not the backbone of the workflow.If planning is producing history/<feature>/discovery.md, keep the saved output concise and evidence-based:
## Architecture Snapshot## Existing Patterns## Dependency Notes when importer or caller evidence materially affects the planDo not dump raw tool output when a short grounded summary will do.
If the scout says gkg is unsupported or not ready, use local inspection with rg.
Useful fallbacks:
rg --filesrg --files | rg 'auth|router|db|queue'rg -n "MySymbol|myFunction|authMiddleware" .rg -n "^import .*from ['\"].*target|require\\(.*target" .rg -n "export (async )?function|class |const .*=" .Then read the relevant files directly.
If planning is writing discovery output, note the fallback plainly in history/<feature>/discovery.md, for example:
gkg was unavailable or not ready for this repo/session, so discovery used
rgand direct file inspection.
gkg repo_map, gkg search, gkg deps, or gkg context. Those are not the discovery interface this repo relies on.import_usage as a general architecture mapper.get_references or get_definition without a fallback plan.tools
Use when the user asks to commit everything, smart commit, group commits, organize staged or unstaged changes, create logical commits, push current work, or preserve a clean commit stack from an existing working tree.
development
Use when starting or resuming any Khuym project session, choosing the next Khuym skill, running go mode, checking onboarding/scout state, or enforcing workflow gates. Bootstrap meta-skill for routing across the Khuym agentic development ecosystem.
development
Use when the user wants to turn a rough idea, vague task, feature wish, bug-fix intent, or Codex /goal objective into a clear verifiable goal prompt. Use when the user mentions goal mode, /goal, set_goal, long-running autonomous Codex work, or asks to be interviewed/grilled before creating a goal.
tools
Use when Codex should turn a concept, topic, tutorial, lesson, algorithm, system, workflow, or abstract idea into a playable browser game that teaches through interaction. Use for planning or implementing educational web games with the Game Studio plugin, including concept-to-mechanic translation, gameplay loop design, learning progression, and browser-game QA.