compile-func-def

compile-func-def is a skill for Claude Code from FuRongJun-1999/dsh-memory. It costs 95 tokens per session (438 once invoked), scanned A, original, MIT.

A compiler step that defines a function, including where its body starts and where it returns. A function is a named block of code that can be called later.

In plain words
What is it for?
It helps compile a function's entry point, body, and final return instruction.
Why use it?
It gives function definitions a consistent structure for compilation and execution.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps compile a function's entry point, body, and final return instruction.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/furongjun-1999/dsh-memory/compile-func-def
Install

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.

Any agent
npx skills add FuRongJun-1999/dsh-memory --skill compile-func-def
Clone the repo
git clone --depth 1 https://github.com/FuRongJun-1999/dsh-memory

Made for: Claude Code.

Wrote 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.

agentmods badge for compile-func-def

README.md
[![agentmods](https://agentmods.dev/badge/skills/furongjun-1999/dsh-memory/compile-func-def/github.svg)](https://agentmods.dev/skills/furongjun-1999/dsh-memory/compile-func-def)
Your own site
<a href="https://agentmods.dev/skills/furongjun-1999/dsh-memory/compile-func-def"><img src="https://agentmods.dev/badge/skills/furongjun-1999/dsh-memory/compile-func-def/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.

agentmods 80×15 button for compile-func-def

Your own site · 80×15
<a href="https://agentmods.dev/skills/furongjun-1999/dsh-memory/compile-func-def"><img src="https://agentmods.dev/badge/skills/furongjun-1999/dsh-memory/compile-func-def.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 438 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.00438
Opus 5 $0.00048 $0.00219
Sonnet 5 $0.00019 $0.00088
Haiku 4.5 $0.00010 $0.00044

Measured today against content hash 7981db39e532, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

compile-func-def 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 today.

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.

skills/skills/lingshu-compiler/units/compile-func-def/SKILL.md · 46 lines

What it actually says

编译-函数定义(compile-func-def)

When to use

任务「函数定义」;对照:protocol-compiler 函数定义(入口=函数体起点,体末 RETURN)。

克制条款(不适用条件)

条件不满足即不适用(负路由:输入不满足生效条件时返回 None/不执行)

How to execute

顺序调用

Verification

  • 单元样例 1 条(cases 断言)
  • 物理基底:按 calibration 对照(编译/运行/断言裁决)

References

  • 单元库:compiler_code_units.py「编译-函数定义」
Changes

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.

  1. today First seen · 46 lines · 95 tokens per session scan A 7981db39e532

Subscribe to this mod's changes

compile-func-def is a skill published in the GitHub repository FuRongJun-1999/dsh-memory (159 stars, last pushed today), licensed MIT. It adds 95 tokens to every session and 438 once invoked, about $0.0005 per session on Opus 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-09-11.