Skip to content
Back to skills

Program Craftsmanship

ASecurity

Refactor, clean up or port code preserving behavior; structure.toml code-health messages; organize project files, pipelines, handoff layouts.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 13, 2026
ai-agentsapisecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add tompassarelli/north --skill program-craftsmanship --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Program Craftsmanship?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Program Craftsmanship
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tompassarelli-program-craftsmanship/badge)](https://www.skillsdirectory.com/skills/tompassarelli-program-craftsmanship)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: program-craftsmanship
description: >-
  Refactor, clean up or port code preserving behavior; structure.toml code-health messages; organize project files, pipelines, handoff layouts.
grounded: 2026-11-10
written: 2026-11-10
portable: true
---

# Program craftsmanship

1. Identify preserved behavior, callers, interfaces and an existing drift check, because a refactor without one cannot show it preserved anything.
2. Limit changes to mechanical transformations without a credible behavior comparison, since only those carry their own equivalence argument.
3. Resolve friction encountered by current work using existing patterns, because speculative cleanup costs review without paying back.
4. Treat API, stored-format, security, concurrency or deployment changes as design changes, since callers and data outlive the refactor.
5. Write ports in target-language idioms and compare them against kept contract tests and the source build, so the port is checked against the original rather than itself.
6. Keep each module to its one-line responsibility and call other modules only through their public entry and the `may_use` edges in `structure.toml`, because the gate measures against that map.
7. Answer a `code-health` message by splitting, moving the import behind an allowed interface, or changing `structure.toml` in the same change, so the map and the code never disagree.
8. Place files by authority, lifecycle and retrieval, keep native layouts and move every consumer with the files, so a newcomer can find source, inputs, outputs and the rerun command.
9. Resolve cwd, refs and ambient env into explicit values (absolute path, full commit id) before crossing a process, host or agent boundary, verify them on arrival, and stamp results with the commit they ran on, because a result without a stamp counts as not run.
10. Check the final diff for scope and behavior drift.

Read [refactor and port details](references/notes.md) when classifying a transformation, and [structure, layout and code-health](references/structure.md) when a gate or hook fires, a module boundary moves, you judge whether pieces should change together, or files, data pipelines or handoff layouts need placing.

Files in this skill

  • SKILL.md839 B
  • references/notes.md3.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.