协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
sdk【开发与工程】Use Headroom compression APIs, SharedContext, relevance and image helpers, and the TypeScript SDK in application code.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants to call Headroom from Python or TypeScript code, embed compression in an application, or understand the SDK-level APIs that do not require operating the proxy or durable memory workflows.
compress, compress_spreadsheet, CompressConfig, CompressResult, HeadroomClient, ChatCompletions, Messages, and validate_setup/metrics helpers.SharedContext for compressed inter-agent handoffs.headroom.relevance, headroom.image, and optional extras that affect those APIs.sdk/typescript/, including compress, HeadroomClient, simulate, retrieve, SharedContext, hooks, format conversion, and path helpers.headroom proxy, and agent wrapping/setup: use ../proxy-wrap/SKILL.md.../memory/SKILL.md.../ops/SKILL.md.Python local compression:
from headroom import compress
result = compress([
{"role": "user", "content": "Explain this file"},
], optimize=False)
Python configuration or app wrapper:
from headroom import CompressConfig
from headroom.client import HeadroomClient
TypeScript SDK:
import { compress, HeadroomClient, SharedContext } from "headroom-ai";
For a safe smoke check, read the bundled helper and run the small no-network validation it documents:
python scripts/compress_smoke.py --json
references/api-reference.md captures the verified Python API shapes and important defaults.references/typescript-sdk.md summarizes the TS exports and app-facing examples.references/workflows.md gives concrete Python and TypeScript application recipes.references/troubleshooting.md covers missing extras, proxy assumptions, ONNX/HF/image issues, and type/runtime mismatches.scripts/compress_smoke.py runs a safe no-network Python compression smoke.scripts/tabular_compression_demo.py is the bundled table/spreadsheet demo adapted from the repo example.optimize=False or when the user has not configured a running proxy.