GitEasy: Skill for Claude Code

.claude/skills/function-design/SKILL.md

function-design is a skill for Claude Code from greenmtnsun/GitEasy. It costs 77 tokens per session (1,318 once invoked), scanned A, original, MPL-2.0.

A set of rules for designing public PowerShell functions, including their inputs, processing steps, outputs, and help text. PowerShell is a command-line scripting language from Microsoft.

In plain words
What is it for?
Use it when creating or changing a public function in one of the suite's projects. It covers pipeline input, parameter groups, commands that change state, structured results, and plain-English help.
Why use it?
It makes commands more predictable for people who use them and for other commands that connect to them. It reduces inconsistent parameters, return values, and documentation.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event.

This is greenmtnsun/GitEasy's own configuration. It tells Claude Code how to work on GitEasy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything GitEasy configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/greenmtnsun/GitEasy/main/.claude/skills/function-design/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/greenmtnsun/GitEasy

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 function-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/greenmtnsun/giteasy/function-design/github.svg)](https://agentmods.dev/skills/greenmtnsun/giteasy/function-design)
Your own site
<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.

agentmods 80×15 button for function-design

Your own site · 80×15
<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>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,318 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.00077 $0.01318
Opus 5.5 $0.00031 $0.00527
Sonnet 5.5 $0.00015 $0.00264
Haiku 4.5 $0.00008 $0.00132

Measured today against content hash c61f52dd37d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/skills/function-design/SKILL.md · 130 lines

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-suite for cross-product strategy. air-gap-discipline for environment rules. editorial-stance for 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
    }
}

Read the full file on GitHub · 130 lines

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 · 130 lines · 77 tokens per session scan A c61f52dd37d7

Subscribe to this mod's changes

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.

Related

function-design compared with skills from other repositories

function-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
function-designgreenmtnsun/GitEasySkill1yesterdayMPL-2.0A77Claude Code
erlang-otp-behaviorsbenchflow-ai/skillsbenchSkill1.9k2d agoApache-2.0A52Claude Code, Codex
axiom-concurrencyCharlesWiltgen/AxiomSkill1.3k10d agoMITA49Claude Code
tddcodewithmukesh/dotnet-claude-kitSkill83814d agoMITA81Claude Code
haskell-prormyndharis/antigravity-skillsSkill2.0k11d agoMITA37Claude Code, Codex
compiler-optimizations-deepmohitmishra786/low-level-dev-skillsSkill2945d agoMITA74Claude Code, Codex
go-ws-module-skilljiushiwon/wg-skillsSkill1512d agoApache-2.0A131Claude Code, Codex