token-estimator-mvp
Estimate AI planning ranges from a work description or explicitly authorized safe project context. Provides coarse class ranges or conditional planning bases without requiring token guesses.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 287
- Forks
- 97
01 前言 Front Matter
- name
- token-estimator-mvp
- license
- MIT
- description
- Estimate AI planning ranges from a work description or explicitly authorized safe project context. Provides coarse class ranges or conditional planning bases without requiring token guesses.
02 资源文件 46
- 参考文档examples/ambiguous-prediction.json305 B
- 参考文档examples/coarse-prediction.json140 B
- 参考文档examples/computational-context.json508 B
- 参考文档examples/context.json416 B
- 参考文档examples/context/computational.md1.9 KB
- 参考文档examples/context/operation.md1.4 KB
- 参考文档examples/context/README.md632 B
- 脚本examples/context/scientific-pipeline.sh35 B
- 参考文档examples/description.json427 B
- 参考文档examples/disjoint-tasks.json770 B
- 参考文档examples/integration.json286 B
- 参考文档examples/missing-context.json288 B
- 参考文档examples/operation-bounded-monitoring.json354 B
- 参考文档examples/operation-context.json442 B
- 参考文档examples/operation-failed-setup.json356 B
- 参考文档examples/operation-ongoing.json272 B
- 参考文档examples/operation-review.json639 B
- 参考文档examples/operation-shared-checks.json255 B
- 参考文档examples/operation-unresolved.json257 B
- 参考文档examples/operation.json307 B
- 参考文档examples/partial.json522 B
- 参考文档examples/prototype.json244 B
- 参考文档examples/README.md761 B
- 参考文档examples/real-data.json274 B
- 参考文档examples/simulation.json262 B
- 参考文档examples/unsupported.json299 B
- 参考文档package.json386 B
- 参考文档README.md755 B
- 参考文档references/context-policy.md3.9 KB
- 参考文档references/input-guide.md2.9 KB
- 参考文档references/operational-evidence.md1.0 KB
- 参考文档resources/calibration.json7.6 KB
- 参考文档resources/contract.schema.json13.0 KB
- 参考文档resources/work-profiles.json27.4 KB
- 脚本scripts/estimate.js1.0 KB
- 脚本scripts/model.js37.1 KB
- 参考文档tests/accepted-hashes.json863 B
- 脚本tests/behavior.test.js2.5 KB
- 脚本tests/model.test.js3.4 KB
- 脚本tests/operations.test.js2.8 KB
- 脚本tests/packaging.test.js2.3 KB
- 脚本tests/phases.test.js3.2 KB
- 脚本tests/portable-guard.cjs2.3 KB
- 脚本tests/privacy-guard.cjs2.1 KB
- 脚本tests/runtime-read-guard.cjs543 B
- 脚本tests/skill-guidance.test.js987 B
03 SKILL.md 正文
Token estimator MVP
Use this skill for first-pass AI planning guidance. It is not a scientific execution service.
Use only the bundled CLI or API with calibration and profiles. Never invent formulas or ask users for token budgets.
Procedure
-
Identify the deliverable from the request. Context is optional.
-
Map to the input guide and contract, version 1.2.0.
-
Leave unknown facts unknown. Provide conditional bases when supported.
-
For "run an existing workflow," use
existing-workflow-operation. -
Count shared setup/checks once. Separate independent review as its own task.
-
Run the estimator with sanitized JSON:
node scripts/estimate.js --input examples/coarse-prediction.json -
Report status, mapping, assumptions, uncertainty and exclusions.
Package notes
Copy this entire directory to skills/token-estimator-mvp/ in the target
repository. Keep files relative and project-local. No installs, credentials,
network access, or external authoring workspace are required.
See examples for supported scenarios.
Run tests:
node --test tests/model.test.js tests/phases.test.js tests/operations.test.js tests/behavior.test.js tests/packaging.test.js tests/skill-guidance.test.js
This package ships provisional community reference ranges. They are planning heuristics requiring broader community validation and are not statistical bounds or evidence of customer outcomes.
04 同仓库更多 Skills
build-research-paper
Cross-domain / Scientific writing and publication — Build beautifully-formatted, arxiv-ready research paper PDFs from a mix of hand-authored LaTeX and/or markdown + PNG figures, using `tectonic` (default) or `pandoc` (escape hatch). Captures the reusable pattern that research projects keep re-discovering: `report/main.tex` + `references.bib` + `generate_figures.py` + iterative feedback/response scaffolding, all buildable with a single command. WHEN: write a research paper, arxiv submission, prepub, generate PDF from markdown, LaTeX paper, build main.tex, journal manuscript, referee revision, response to referee, resubmission package, publication-quality figures, matplotlib publication style, tectonic build, pandoc build, generate arxiv-ready PDF, bibliography from BibTeX.
add-example-agents
Add agents from the public microsoft/discovery GitHub repository to this workspace, either (a) locally for the Copilot app by emitting a `.agent.md` companion per agent (so each is invocable via `runSubagent`), (b) into a Microsoft Discovery project via `UpsertAgent` sourced fresh from upstream (binding pre-existing tool ARM resources when present, or building + pushing + registering them in Azure first when missing), or (c) promoting an agent already added to the local Copilot app (sourced from its `.github/agents/<name>.agent.md` companion; tool-bearing agents also carry a `discovery_catalog/<name>/` folder plus a locally-built tool container, while toolless agents have only the companion) up to a specific Microsoft Discovery project + Azure without re-fetching or refreshing from upstream. The user picks exactly one of the three targets per run. USE FOR: 'add the discovery agents', 'download discovery agents', 'install all Microsoft discovery agents', 'add agents from microsoft/discovery', 'create copilot agents from microsoft/discovery', 'deploy discovery agents to Foundry', 'deploy discovery agents to Azure', 'promote a local agent to Microsoft Discovery', 'push my local agent and container to a Discovery project', 'copy a local app agent to Azure'. Always refreshes every selected subfolder under `agents/<name>/` of the upstream repo into `discovery_catalog/<name>/` so the local catalog stays current (new agents appear, removed agents are surfaced, updated content is applied). The presence check for what is 'already locally added' uses `.github/agents/<name>.agent.md` (the Copilot companion), not the `discovery_catalog/` folder. For local deployment, each generated `.agent.md` carries a lazy Docker-bootstrap preamble so the agent builds its tool image on first use only if absent. For Discovery + Azure deployment, pre-flights every declared tool via `GetDiscoveryTool` against the workspace's RG and **skips Docker build / ACR push / AcrPull RBAC entirely when the tool already exists** (common for shared catalog images on registries like `mdqacr`); only builds + registers tools that are actually missing. Always creates the agent in the chosen Discovery project via `UpsertAgent` and polls **`GetAgent` for `provisioningState=Succeeded`** (the MCP `GetAgentOperation` tool returns an opaque error in practice; never rely on it). All MCP calls flow through PowerShell scripts embedded in this SKILL.md and materialized into `.vscode/` during Step 4d — the skill does not depend on sibling helper files or on the VS Code MCP runtime surfacing `mcp_microsoft-dis_*` tools mid-session. Local Discovery runtime registration via `agents action=create` is optional and skipped by default. DO NOT USE FOR: running an already-deployed agent (use runSubagent), or editing a single agent's prompt (edit `agent.yaml` directly).
migrate-podman-containerfile
Migrate a Podman Containerfile to the canonical Dockerfile required by the Discovery catalog. Use when a PR fails POL-022, a tool contains Containerfile or Dockerfile.in, or a contributor asks to convert Podman build files for Docker. Creates the Dockerfile directly only when the migration is mechanically safe and refuses ambiguous preprocessing or multi-file builds.
discovery-services-starter-kit-deployer
Deploy Discovery catalog starter-kits end-to-end: validate kit.json agentRefs, build and deploy every referenced agent tool, deploy each referenced agent individually, and summarize deployed agents/tools plus customer-ready sample prompts. Use this skill whenever the user asks to deploy a Discovery starter-kit or deploy all agents listed in starter-kits/*/kit.json.
discovery-services-agent-deployer
Deploy Discovery catalog agents end-to-end with one command: discover the agent, build and bind its tool when present, skip tool stages for agents without tools, deploy the agent, and optionally run validation. Use this skill whenever the user asks to deploy a Discovery agent, publish or rebuild an agent tool image, register a Discovery tool from a repo Dockerfile/tool.yaml, resume a failed deployment, or produce a dry-run deployment plan for an agent in this catalog.
discovery-design-tasks
暂无简介