Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add leechen298/Code2Skill --skill code2skill-generategit clone --depth 1 https://github.com/leechen298/Code2SkillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/leechen298/code2skill/code2skill-generate)<a href="https://agentmods.dev/skills/leechen298/code2skill/code2skill-generate"><img src="https://agentmods.dev/badge/skills/leechen298/code2skill/code2skill-generate/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/leechen298/code2skill/code2skill-generate"><img src="https://agentmods.dev/badge/skills/leechen298/code2skill/code2skill-generate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 5 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Tool Misuse · line 125 Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.Fix: Limit tool chaining depth and validate the output of each tool before passing it to the next. Require explicit user approval for multi-step chains.
- high Rogue Agent · line 129 Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
- high Tool Misuse · line 168 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
- medium MCP Rug Pull · line 151 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium Excessive Agency · line 155 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00096 | $0.06047 |
| Opus 5.5 | $0.00038 | $0.02419 |
| Sonnet 5.5 | $0.00019 | $0.01209 |
| Haiku 4.5 | $0.00010 | $0.00605 |
Grade A, and why
code2skill-generate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code2Skill
Complete Chinese version: SKILL.zh-CN.md.
Use the user's language for the final response, generated Skills, and user-facing documentation. When no language is explicitly requested, follow the language of the user's current request.
Turn the business capabilities of an existing application into Functions, MCP tools, and Skills that other agents can use. The default goal is a small, reliable runtime package, not an audit archive of the source code.
Use the current coding agent to search, understand, and modify user-authorized code; do not build a separate scanner. The Consumer of the generated package may not be the current agent. Do not assume that it can read the original repository, files on the Producer machine, or session state, except for controlled attachment paths or attachment references explicitly passed to a tool by the Consumer Host.
Default Generated Result
Unless the user explicitly requests a strict audit, generate only:
generated/code2skill/<feature-id>/
├── SKILL.md # Used when there is only one primary goal
├── skills/ # Replaces the root SKILL.md when there are multiple primary goals
│ ├── <goal-a>/SKILL.md
│ └── <goal-b>/SKILL.md
├── MCP-SETUP.md
├── package.json # Current node-stdio profile example: package metadata, runtime scripts, and dependencies
├── function-core/
│ └── index.mjs # Current node-stdio profile example
├── mcp-tool/
│ └── index.mjs # Current node-stdio profile example
├── portable-agent-result.mjs # Generic result projection helper for node-stdio (readHttpResponse/httpResultFromError are HTTP-only)
├── tests/
│ └── *.test.mjs # Current node-stdio profile example
└── references/
└── feature-context.md # Generated only when business context cannot be kept concise in the Skill
The default artifact composition remains the same, while extensions, dependencies, and startup methods follow the runtime profile. core-export-v1 is implemented by node-stdio.
What ships with it
40 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 748 B
- assets/canonical-contract.json 67 KB
- assets/core-feature-context.md 1.5 KB
- assets/core-feature-context.zh-CN.md 1.1 KB
- assets/core-MCP-SETUP.md 5.1 KB
- assets/core-MCP-SETUP.zh-CN.md 4.1 KB
- assets/export-profile.json 576 B
- assets/feature-context.md 4.1 KB
- assets/feature-context.zh-CN.md 3.4 KB
- assets/host-profile.json 1.2 KB
- assets/mcp-runtime-entry.mjs 224 B runs code
- assets/MCP-SETUP.md 5.6 KB
- assets/MCP-SETUP.zh-CN.md 4.6 KB
- assets/portable-agent-result.mjs 3.1 KB runs code
- assets/portable-error-normalizer.mjs 2.6 KB runs code
- assets/portable-workflow-guard.mjs 22 KB runs code
- assets/source-topology.json 1.5 KB
- assets/verification-report.md 1.0 KB
- assets/verification-report.schema.json 5.8 KB
- assets/verification-report.zh-CN.md 948 B
- references/artifact-contract.md 31 KB
- references/capability-model.md 15 KB
- references/documentation-contract.md 12 KB
- references/evidence-and-discovery.md 11 KB
- references/mcp-tool-design.md 20 KB
- references/observed-skill-design.md 5.9 KB
- references/SKILL.zh-CN.md 23 KB
- references/verification.md 15 KB
- references/vnext-architecture.md 27 KB
- references/vnext-architecture.zh-CN.md 22 KB
- scripts/compile_artifacts.py 19 KB runs code
- scripts/contract_model.py 110 KB runs code
- scripts/derive_artifacts.py 12 KB runs code
- scripts/finalize_export.py 67 KB runs code
- scripts/probe_mcp.py 28 KB runs code
- scripts/run_pipeline.py 100 KB runs code
- scripts/run_vectors.py 39 KB runs code
- scripts/validate_artifacts.py 154 KB runs code
- scripts/validate_core_export.py 16 KB runs code
- scripts/validate_vnext.py 255 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 216 lines · 96 tokens per session scan A 201d273cf4f5
code2skill-generate is a skill published in the GitHub repository leechen298/Code2Skill (9 stars, last pushed 10d ago), licensed MIT. It adds 96 tokens to every session and 6,047 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
manage-taskboard
Manage work in the native DeepSeek Harness Taskboard with exact task ids and optimistic versions. Use when an Agent must inspect project work, claim an eligible todo, record progress or blockers, verify an implementation, submit it for human review, or release its own claim; also use when a human asks how to accept…
company-research-method
A documented process for researching a company using supplied files and selected public sources. It produces a company overview with business details, sourced financial figures, and stated risks.
promentor
A tool that turns a software project into a hands-on course in the style of an MIT course. It can produce lessons, code walkthroughs, practical labs, behavior tests, grading, explanations, and AI reviews.
dsh-plugin-guide
Use when developing, reviewing, packaging, debugging, or answering questions about DeepSeek Harness (DSH) plugins — the plugin-based agent harness on vendored Cordis. Applies the official plugin-development constraints (plugin contract, cordis.yml layers, services/events/effects, tool DSL, bundles/profiles) backed by…
delivery-proof
Delivery proof and the doublecheck report. Use when the work is done and the delivery must be proven — consolidate the spec, test timeline, review verdicts, and verification checks into a doublecheckreport, and only then claim completion.
playlet-wechat-feed
A daily report of popular short-drama articles from WeChat public accounts, a Chinese publishing platform, grouped by story themes and accompanied by writing insights.