Agent skill

Validate Signature

by peijun1700 in peijun1700/bluemouse

L5-L8 函數簽名驗證 - 檢查參數、返回值、類型提示、文檔字符串. An agent skill from peijun1700/bluemouse.

AGPL-3.0Auto-check: notesDevelopment

Install Validate Signature

skills CLI
$ npx skills add peijun1700/bluemouse --skill validate-signature -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install peijun1700/bluemouse validate-signature --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/peijun1700/bluemouse.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/validate-signature .claude/skills/validate-signature && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
validate-signature
GitHub stars
109
Token cost
~923 tokens
SKILL.md length
156 words
Files
2
Skills in repo
5
Repo updated
First seen
Licence
AGPL-3.0

At a glance

L5-L8 函數簽名驗證 - 檢查參數、返回值、類型提示、文檔字符串. An agent skill from peijun1700/bluemouse.

  • Works in 2 steps: AI-Guided Validation → Script Execution
  • Tasks that involve Technical documentation
  • SKILL.md covers Two Ways to Use, L5: 參數檢查, L6: 返回值檢查 and L7: 類型提示檢查, plus 3 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Validate Signature is an agent skill from peijun1700/bluemouse. L5-L8 函數簽名驗證 - 檢查參數、返回值、類型提示、文檔字符串。 BlueMouse 17-Layer Validation Group 2。 Triggers: "signature", "參數檢查", "type hints", "docstring"

Its SKILL.md is about 920 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `validator.py`).

It sits in Development, covering Technical documentation and Type safety. The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve Technical documentation
  • Tasks that involve Type safety

Example prompts

  • “signature”
  • “type hints”
  • “docstring”
  • “/validate-signature”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Bash

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. AI-Guided Validation
  2. Script Execution

What it can do on your machine

Read from SKILL.md and the folder at commit 4f32ef0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Validate Signature loads about 923 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 156 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~923

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from peijun1700/bluemouse at commit 4f32ef0, republished under its AGPL-3.0 licence (© peijun1700). 156 words, ~923 tokens.

Download SKILL.mdSave it as .claude/skills/validate-signature/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
validate-signature
description
L5-L8 函數簽名驗證 - 檢查參數、返回值、類型提示、文檔字符串。 BlueMouse 17-Layer Validation Group 2。 Triggers: "signature", "參數檢查", "type hints", "docstring"
allowed-tools
Read, Bash
user-invocable
true
context
fork

Validate Signature Skill (L5-L8)

BlueMouse 17-Layer Validation System - Group 2: 函數簽名驗證

Two Ways to Use

1. AI-Guided Validation

Follow the checklist below to analyze code.

2. Script Execution
bash
python3 .claude/skills/validate-signature/validator.py myfile.py
python3 .claude/skills/validate-signature/validator.py --spec spec.json myfile.py

L5-L8 Validation Checklist

L5: 參數檢查

What: Function has parameters (or matches spec if provided)

How:

python
func = functions[0]  # Check first function
actual_params = set(arg.arg for arg in func.args.args)

if spec and 'inputs' in spec:
    expected_params = set(spec['inputs'])
    passed = expected_params == actual_params
else:
    passed = True  # No spec, just report count

Pass:

  • With spec: "參數與規格匹配"
  • Without spec: "函數有 N 個參數"

Fail: "參數不匹配: 期望 {expected}, 實際 {actual}"


L6: 返回值檢查

What: Function has explicit return statement

How:

python
has_return = any(
    isinstance(node, ast.Return)
    for node in ast.walk(func)
)

Pass: "函數有返回值" Fail: "函數缺少返回值"

Examples:

python
# ✅ PASS
def process(data):
    return data * 2

# ❌ FAIL
def process(data):
    print(data)  # No return

L7: 類型提示檢查

What: Type hints coverage ≥80% AND has return type annotation

How:

python
params_with_hints = sum(1 for arg in func.args.args if arg.annotation)
total_params = len(func.args.args)
has_return_hint = func.returns is not None

if total_params > 0:
    coverage = params_with_hints / total_params
else:
    coverage = 1.0 if has_return_hint else 0.0

passed = coverage >= 0.8 and has_return_hint

Pass: "類型提示覆蓋率: {coverage}%" Fail: "類型提示不足: {coverage}%"

Coverage Examples:

ParamsAnnotatedCoverageReturn TypeResult
55100%✅✅ PASS
5480%✅✅ PASS
5360%✅❌ FAIL
55100%❌❌ FAIL

Examples:

python
# ✅ PASS: 100% coverage + return type
def process(data: list, count: int) -> dict:
    return {}

# ❌ FAIL: Missing return type
def process(data: list, count: int):
    return {}

# ❌ FAIL: <80% coverage
def process(data, count: int) -> dict:  # 50%
    return {}

L8: 文檔字符串檢查

What: Function has meaningful docstring (>10 characters)

How:

python
docstring = ast.get_docstring(func)
passed = docstring and len(docstring) > 10

Pass: "有完整文檔字符串 ({length} 字符)" Fail: "缺少或文檔字符串過短"

Examples:

python
# ✅ PASS: >10 characters
def process(data):
    """Process input data and return results."""
    return data

# ❌ FAIL: Too short (≤10 chars)
def process(data):
    """Process"""
    return data

# ❌ FAIL: No docstring
def process(data):
    return data

Output Format

==================================================
L5-L8: 函數簽名驗證
==================================================

Status: ✅ PASSED / ❌ FAILED
Score: X/100 (N/4 layers)

✅/❌ L5: 參數檢查 - [message]
✅/❌ L6: 返回值檢查 - [message]
✅/❌ L7: 類型提示檢查 - [message]
✅/❌ L8: 文檔字符串檢查 - [message]

SkillLayers
/validate-17-layersL1-L17 (完整)
/validate-syntaxL1-L4
/validate-signatureL5-L8
/validate-dependenciesL9-L12
/validate-logicL13-L17

Part of BlueMouse 17-Layer Validation System

© peijun1700, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .claude/skills/validate-signature of peijun1700/bluemouse.

  • SKILL.md
  • validator.py

Open the folder on GitHubat commit 4f32ef0

Compare with similar skills

Validate Signature next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Validate Signature compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Validate Signature this skillpeijun1700/bluemouse109—~923Automated safety check: NotesAGPL-3.0
Meilisearch PHP PHPDoc Writermeilisearch/meilisearch-php758—~569Automated safety check: PassMIT
Diataxis Docs Writercalf-ai/calfkit-sdk1491 repos~3kAutomated safety check: PassApache-2.0
Repo Guardsimovilab/databus101—~1.3kAutomated safety check: PassApache-2.0
Adk Stylegoogle/adk-python22k—~769Automated safety check: PassApache-2.0
Implement Widget Frontendcryptomilk/hass-eink-dashboard116—~3.3kAutomated safety check: PassApache-2.0

Similar skills

  • Meilisearch PHP PHPDoc Writer

    meilisearch/meilisearch-php

    Documents public methods of the meilisearch-php SDK with compact PHPDoc, including @see links, @since tags and the experimental-feature notice.

    758 GitHub stars~569 tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Diataxis Docs Writer

    calf-ai/calfkit-sdk

    Write or improve software documentation using the Diátaxis framework — four documentation types (tutorials, how-to guides, reference, explanation), each serving a different user need.

    149 GitHub starsUsed in 1 repo~3k tokens
    DevelopmentAuto-check passed
  • Repo Guard

    simovilab/databus

    Keep the databus repo clean as it grows — verify new/changed backend code meets the project's docstring, type-hint, and structural conventions, and update any docs the change made stale.

    101 GitHub stars~1.3k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Adk Style

    google/adk-python

    Official

    Python style and codebase conventions for ADK (Agent Development Kit): private-by-default file visibility, imports, type hints, Pydantic v2 models, formatting, docstrings, logging, async I/O, file…

    22k GitHub stars~769 tokensUpdated today
    DevelopmentAuto-check passed
  • Implement Widget Frontend

    cryptomilk/hass-eink-dashboard

    Add TypeScript types in ha.d.ts and editor schema in eink-dashboard-editor.ts for a new or updated widget type; also handles deprecating an old type (remove from picker, keep schema, add @deprecated…

    116 GitHub stars~3.3k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Python Code Style

    wshobson/agents

    Python code style, linting, formatting, naming conventions, and documentation standards.

    40k GitHub stars~2k tokensUpdated 6 days ago
    DevelopmentAuto-check passed

More from peijun1700/bluemouse

  • Validate Dependencies

    peijun1700/bluemouse

    L9-L12 依賴關係驗證 - 檢查導入語句、標準庫、第三方庫、循環依賴. An agent skill from peijun1700/bluemouse.

    109 GitHub stars~1k tokensUpdated 8 mo ago
    Auto-check: notes
  • Validate Logic

    peijun1700/bluemouse

    L13-L17 類型和邏輯驗證 - 檢查類型一致性、邏輯完整性、錯誤處理、安全性、性能. An agent skill from peijun1700/bluemouse.

    109 GitHub stars~1.5k tokensUpdated 8 mo ago
    Auto-check: notes
  • Validate Syntax

    peijun1700/bluemouse

    L1-L4 語法和結構驗證 - 檢查 Python 語法、AST 結構、縮進格式、命名規範. An agent skill from peijun1700/bluemouse.

    109 GitHub stars~856 tokensUpdated 8 mo ago
    Auto-check: notes
  • Validate 17 Layers

    peijun1700/bluemouse

    The BlueMouse 17-Layer Alpha Scale (Static Standard). An agent skill from peijun1700/bluemouse.

    109 GitHub stars~546 tokensUpdated 8 mo ago
    Auto-check: notes

Categories

Questions about Validate Signature

What does Validate Signature do?

L5-L8 函數簽名驗證 - 檢查參數、返回值、類型提示、文檔字符串. An agent skill from peijun1700/bluemouse. Validate Signature is an agent skill from peijun1700/bluemouse.

When should I use Validate Signature?

Validate Signature fits situations like: tasks that involve Technical documentation; tasks that involve Type safety.

How do I install Validate Signature in Claude Code?

Run `npx skills add peijun1700/bluemouse --skill validate-signature -a claude-code`. Or copy the skill folder (.claude/skills/validate-signature in peijun1700/bluemouse) into .claude/skills/validate-signature in your project. Claude Code loads it when a task matches its description.

How do I install Validate Signature in Codex?

Run `npx skills add peijun1700/bluemouse --skill validate-signature -a codex`. Or copy the skill folder (.claude/skills/validate-signature in peijun1700/bluemouse) into .agents/skills/validate-signature in your project. Codex loads it when a task matches its description.

Can I use Validate Signature in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add peijun1700/bluemouse --skill validate-signature -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/validate-signature, .gemini/skills/validate-signature, .github/skills/validate-signature and .opencode/skills/validate-signature in your project.

What does Validate Signature need to run?

Going by SKILL.md and its folder, Validate Signature needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Bash.

Does Validate Signature access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Validate Signature safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Validate Signature use?

Validate Signature is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Validate Signature use?

About 923 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Validate Signature?

Skills that share tags, products or a category with Validate Signature: Meilisearch PHP PHPDoc Writer (meilisearch/meilisearch-php, 758 stars), Diataxis Docs Writer (calf-ai/calfkit-sdk, 149 stars), Repo Guard (simovilab/databus, 101 stars) and Adk Style (google/adk-python, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Validate Signature?

peijun1700 (a GitHub user) maintains it in peijun1700/bluemouse, which has 109 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on January 29, 2026.

Source: peijun1700/bluemouse on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.