gkg
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`.
What this skill does
# gkg If `.khuym/onboarding.json` is missing or stale for the current repo, stop and invoke `khuym:using-khuym` first. ## Start With The Repo Scout Do not start with `which gkg` or any imagined `gkg <subcommand>` discovery flow. Run: ```bash 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`. - If readiness is green, use MCP tools for discovery. Do not switch back to a CLI-shaped discovery workflow. In this repo, readiness is exposed through the scout. Treat that as the normal operator path. ## What Is Reliable Here Use gkg as a discovery accelerator, not as a replacement for reading files. Strong, normal-path tools in this repo: - `list_projects` - `index_project` - `repo_map` - `search_codebase_definitions` - `read_definitions` Helper-only tool: - `import_usage` Non-core, lower-confidence tools: - `get_references` - `get_definition` The 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. ## Primary Discovery Path Use this path by default during Khuym planning and other codebase discovery work. ### 1. `repo_map` Use first for unfamiliar areas. It is the best starting point for a compact architecture snapshot. Use it to answer: - which directories and files matter for this feature - which files expose the main definitions in a target area - how the local repo slice is shaped before deeper reads When discovery is being written down for planning, save the result or summary to `history/<feature>/discovery.md` under `## Architecture Snapshot`. ### 2. `search_codebase_definitions` Use next to find candidate symbols, classes, functions, constants, or handlers related to the feature. Good uses: - find auth entry points - find route handlers - find data access helpers - find existing naming and pattern anchors before proposing a new approach Keep search terms concrete and code-shaped. Prefer symbol names or narrow domain phrases over prose. ### 3. `read_definitions` Use 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`. ## Tool Guidance ### `list_projects` Use 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_project` Use 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_usage` Use only as a helper for importer discovery. Good uses: - find who imports a package or module - check whether a dependency is used broadly or only in one slice - identify a likely entry file after a package-level search Do not use it as a general substitute for `repo_map` or `search_codebase_definitions`. ### `get_references` Treat as non-core and low-confidence in this repo. Use it only when: - you already know the exact definition to inspect - you want a quick inbound-usage hint - you are prepared to verify the answer with local file reads or `rg` If it misses callers, gives a thin set, or returns ambiguous results, fall back immediately to `rg -n "<symbol>"` and nearby file inspection. ### `get_definition` Treat 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`. ## Khuym Workflow Fit 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 plan Do not dump raw tool output when a short grounded summary will do. ## Practical Fallback Without gkg If the scout says gkg is unsupported or not ready, use local inspection with `rg`. Useful fallbacks: - file inventory: `rg --files` - narrow slice inventory: `rg --files | rg 'auth|router|db|queue'` - symbol search: `rg -n "MySymbol|myFunction|authMiddleware" .` - importer search: `rg -n "^import .*from ['\"].*target|require\\(.*target" .` - definition search: `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 `rg` and direct file inspection. ## Guardrails - Do not describe the workflow as `gkg repo_map`, `gkg search`, `gkg deps`, or `gkg context`. Those are not the discovery interface this repo relies on. - Do not skip the scout-based readiness check. - Do not let symbol-linking tools outrank direct file evidence. - Do not use `import_usage` as a general architecture mapper. - Do not rely on `get_references` or `get_definition` without a fallback plan. - Do not skip reading the actual files before code changes.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.