Borrowing it
Nothing to install: this file belongs to greenmtnsun/GitEasy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/greenmtnsun/GitEasy/main/.claude/skills/function-design/SKILL.mdgit clone --depth 1 https://github.com/greenmtnsun/GitEasyWrote 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/greenmtnsun/giteasy/function-design)<a href="https://agentmods.dev/skills/greenmtnsun/giteasy/function-design"><img src="https://agentmods.dev/badge/skills/greenmtnsun/giteasy/function-design/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/greenmtnsun/giteasy/function-design"><img src="https://agentmods.dev/badge/skills/greenmtnsun/giteasy/function-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00077 | $0.01318 |
| Opus 5.5 | $0.00031 | $0.00527 |
| Sonnet 5.5 | $0.00015 | $0.00264 |
| Haiku 4.5 | $0.00008 | $0.00132 |
Grade A, and why
function-design 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.
How it starts
The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
See also:
software-creation§1, §4, §5 for the broader discipline.module-suitefor cross-product strategy.air-gap-disciplinefor environment rules.editorial-stancefor documentation-output rules.
Function design — the public-surface contract
The shape of a public function is the suite's user experience. A user who runs Get-MWLayout should be able to predict the shape of Test-MWProject without reading docs. That predictability comes from a few contract rules. Lean hard on them; deviate only when there's a real reason. Two of the seven (§5 plain-English, §7 approved verbs) are hard lines — the rest are strong defaults.
1. Pipeline-friendly by default
Lean toward accepting input via the pipeline on every public command that takes data.
function Get-MWLayout {
[CmdletBinding()]
param(
[Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
[string] $ProjectRoot
)
process {
# one input at a time
}
}
When a function operates on a list, accept the list element-by-element via the pipeline AND as a list parameter. Don't force the caller to choose between two invocation shapes.
2. ParameterSet for mutually exclusive inputs
When a command can take input two ways (path vs object, name vs id), default to named parameter sets:
[CmdletBinding(DefaultParameterSetName = 'ByPath')]
param(
[Parameter(Mandatory, ParameterSetName = 'ByPath')]
[string] $Path,
[Parameter(Mandatory, ParameterSetName = 'ByObject', ValueFromPipeline)]
[pscustomobject] $InputObject
)
Don't accept both at once. PowerShell's parameter binding does the disambiguation; the function body doesn't need to.
3. ShouldProcess for state-changing commands
Default any command that changes state — writes a file, modifies a database, calls an external API with side effects — to support -WhatIf and -Confirm:
[CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(...)
process {
if ($PSCmdlet.ShouldProcess($Target, 'Update manifest')) {
# do the change
}
}
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.
- today First seen · 130 lines · 77 tokens per session scan A c61f52dd37d7
function-design is a skill published in the GitHub repository greenmtnsun/GitEasy (1 stars, last pushed yesterday), licensed MPL-2.0. It adds 77 tokens to every session and 1,318 once invoked, about $0.0003 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-11-18.
function-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| function-designgreenmtnsun/GitEasy | Skill | 1 | yesterday | MPL-2.0 | A | 77 | Claude Code |
| erlang-otp-behaviorsbenchflow-ai/skillsbench | Skill | 1.9k | 2d ago | Apache-2.0 | A | 52 | Claude Code, Codex |
| axiom-concurrencyCharlesWiltgen/Axiom | Skill | 1.3k | 10d ago | MIT | A | 49 | Claude Code |
| tddcodewithmukesh/dotnet-claude-kit | Skill | 838 | 14d ago | MIT | A | 81 | Claude Code |
| haskell-prormyndharis/antigravity-skills | Skill | 2.0k | 11d ago | MIT | A | 37 | Claude Code, Codex |
| compiler-optimizations-deepmohitmishra786/low-level-dev-skills | Skill | 294 | 5d ago | MIT | A | 74 | Claude Code, Codex |
| go-ws-module-skilljiushiwon/wg-skills | Skill | 151 | 2d ago | Apache-2.0 | A | 131 | Claude Code, Codex |