Piglet Python Craftsman

v1.0.0

Practical Python craftsmanship guidance based on One Python Craftsman. Use when writing, refactoring, or reviewing Python code for naming, branching, data st...

0· 143·0 current·0 all-time
byChojan Shang@psiace

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for psiace/piglet.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Piglet Python Craftsman" (psiace/piglet) from ClawHub.
Skill page: https://clawhub.ai/psiace/piglet
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install piglet

ClawHub CLI

Package manager switcher

npx clawhub@latest install piglet
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name and description match the provided SKILL.md and reference files: the bundle is a set of Python craftsmanship guidelines and examples. There are no unrelated requirements (no env vars, binaries, or installs) that would be out of scope for a style/review skill.
Instruction Scope
SKILL.md and the reference files are limited to code-quality guidance and do not instruct the agent to read system files, exfiltrate data, or call unknown endpoints. Some examples demonstrate network calls (requests) and file I/O — appropriate as examples of exception handling and I/O guidance — and a few example snippets contain typos/mistakes (e.g., obj.grop, missing imports) that reduce quality but do not indicate malicious intent.
Install Mechanism
No install specification and no code files to execute at install time; this is instruction-only so nothing is written to disk or downloaded during installation.
Credentials
The skill declares no required environment variables, credentials, or config paths. There is no disproportionate secret or credential access requested.
Persistence & Privilege
always is false and the skill is user-invocable (normal). It does not request persistent privileges or attempt to modify other skills or system-wide settings.
Assessment
This skill appears coherent and low-risk: it is an instruction-only Python style guide that asks for no credentials and installs nothing. Before installing, verify the publisher/source and license if provenance is important to you. When using the skill, treat any executable code it suggests as untrusted until you review it — examples include network calls (requests) and file operations, and some snippets contain typos or missing imports, so inspect and run suggested code in a safe environment or with tests rather than blindly executing it. If you want stricter automated checks, consider pairing this skill with established linters or the suggested friendly-python skill.

Like a lobster shell, security has layers — review code before you run it.

latestvk976rx0axe1sz0av0bsz4er6v5838g1y
143downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

piglet

Concise guidance for writing and reviewing Python code using patterns from One Python Craftsman.

Purpose and Triggers

  • Use for Python (.py) code creation, refactoring, or code review.
  • Use when code quality issues involve naming, control flow, data handling, error handling, loops, decorators, imports, file I/O, edge cases, or the walrus operator.
  • Prefer clarity and maintainability. Optimize performance only when it is a real constraint.
  • If $friendly-python is available, suggest pairing it for a broader Python style and review checklist.

Decision Order

  1. Correctness and explicit behavior
  2. Readability and maintainability
  3. Extension cost and change isolation
  4. Performance and micro-optimizations

Workflow

  1. Identify the topic in the table below.
  2. Apply the guidance and compare against Bad and Good examples.
  3. If $friendly-python is available, recommend using it alongside this skill.
  4. Re-check for new edge cases and readability regressions.

Topics

TopicGuidanceReference
Variables and NamingDescriptive names, avoid implicit magic, keep variable scope closereferences/variables-and-naming.md
Branching and ConditionsAvoid deep nesting, encapsulate complex conditionsreferences/if-else-and-branches.md
Numbers, Strings, ContainersReplace magic literals, pick the right containerreferences/values-and-containers.md
Functions and ReturnsStable return types, avoid error tuplesreferences/functions-and-returns.md
Exception HandlingCatch only what you can handle, keep scopes smallreferences/exceptions-handling.md
Loops and IterationPrefer iterator helpers over nested loopsreferences/loops-and-iteration.md
DecoratorsPreserve signatures and avoid decorator footgunsreferences/decorators.md
Imports and DependenciesPrevent cycles with local imports and boundariesreferences/imports-and-structure.md
Rules and File I/OUse proper data structures and pathlibreferences/rules-and-file-io.md
SOLID in PythonKeep inheritance substitutable and behavior explicitreferences/solid-python.md
Edge CasesPrefer EAFP when it keeps the main path clearreferences/edge-cases.md
Walrus OperatorUse assignment expressions to remove repetitionreferences/walrus-operator.md

References

  • Each reference file lists source URLs in its frontmatter urls.

Comments

Loading comments...