ask-expert
Creates expert consultation documents with code extraction, git diffs, and size tracking (125KB limit). Use when user asks to "create an expert consultation document", "prepare code for expert review", "gather architecture context", or needs comprehensive technical documentation for external analysis. Requires Node.js 18+.
What this skill does
# Expert Consultation Document Creator
Create comprehensive technical consultation documents by extracting code, diffs, and architectural context within LLM token limits (125KB).
## Document Structure
### Part 1: Problem Context (~15-25 KB)
1. **Problem** — Issue, errors, test failures
2. **Our Solution** — What was implemented and why
3. **Concerns** — Code smells, coupling, architectural questions
4. **Alternatives** — Other approaches, trade-offs
### Part 2: Complete Architecture (~60-90 KB)
5. **Architecture Overview** — ASCII diagram, data flow, patterns
6. **Components** — Frontend, tests, controllers
7. **Services** — Implementation and interfaces
8. **Models** — Domain entities with relationships
### Part 3: Expert Request (~5-10 KB)
9. **Questions** — Specific technical questions
10. **Success Criteria** — Requirements and priorities
## Workflow
### Step 1: Write Problem Context
Create a descriptive file like `{topic}-consultation.md` with the problem context, your solution, concerns, alternatives, and an architecture overview.
### Step 2: Extract Code
Use the bundled extraction script with size tracking. The script accepts multiple files in one call — batch for efficiency.
```bash
node scripts/extract-code.js \
--track-size --output=doc.md \
--section="Core Files" \
file1.ts file2.ts file3.ts \
--section="Tests" \
test1.ts test2.ts
```
**File format options:**
- Full file: `src/Service.cs`
- Line ranges: `src/Service.cs:100-200` or `src/Service.cs:1-30,100-150`
- Git diff (per-file): `src/Service.cs:diff` or `src/Service.cs:diff=master..HEAD`
**Git diff options (all changes):**
- Staged changes: `--staged`
- Commit changes: `--commit=abc123` or `--commit=HEAD~1`
**Branch-level options (PR consultations):**
- All branch changes: `--branch-diff=master` (auto-resolves merge base)
- Full source of new files: `--new-files-from=master` (syntax-highlighted, not diff format)
**Prefer FULL files over chunks** for better expert analysis. Use chunks only for very large files.
### Step 3: Add Expert Request
Append an "Expert Guidance Request" section to the end of the document with:
- **Questions** — Numbered list of specific technical questions derived from the user's concerns
- **Success Criteria** — Bullet list of requirements and priorities
- **"Please answer in English"** — Always include as the final line
This section is critical — without it, the expert has no actionable request.
### Step 4: Verify Size
Check the file size — it should be 100-125 KB. DO NOT read the full file back (exceeds context).
## Code Extraction Examples
See [EXAMPLES.md](EXAMPLES.md) for detailed usage patterns.
**With sections:**
```bash
node scripts/extract-code.js \
--track-size --output=doc.md \
--section="What Changed" \
src/Service.cs:diff \
--section="Implementation" \
src/Service.cs src/Model.cs
```
**Using config file:**
```bash
node scripts/extract-code.js \
--config=extraction-plan.json
```
**Staged or commit changes:**
```bash
node scripts/extract-code.js \
--staged --track-size --output=doc.md
node scripts/extract-code.js \
--commit=abc123 --track-size --output=doc.md
```
**PR consultation (single command for all branch changes):**
```bash
node scripts/extract-code.js \
--branch-diff=master --track-size --output=consultation.md
# With full source of new files (syntax-highlighted, not diff format)
node scripts/extract-code.js \
--branch-diff=master --new-files-from=master \
--track-size --output=consultation.md
```
## Config File Format
```json
{
"output": "consultation.md",
"trackSize": true,
"sections": [
{
"header": "What Changed",
"files": ["src/Service.cs:diff"]
},
{
"header": "Core Implementation",
"files": ["src/Service.cs", "src/Model.cs"]
}
]
}
```
## Code Inclusion Priority
**Must include:**
- Core interfaces/abstractions
- Modified/bug-fix code
- Domain models
- Key service methods
- Test examples
**Skip if tight on space:**
- Boilerplate
- Simple DTOs
- Repetitive test setups
## Gotchas
- The 125KB limit is enforced by the extraction script — it warns at 100KB and 115KB, then exits at 125KB
- Always use `--track-size` to stay within the limit
- Don't read the completed document back into context — it's too large
- The script appends to existing files, so you can build incrementally
- Shell constructs like `$()` and variable assignments in Bash calls can trigger permission prompts. Prefer simple, single-command calls when possible.
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.