agentleFS
lgtm-hqlgtm-hq/ai-skills/skills/properize/SKILL.md

properize

Skill1 starsChanged 10 days agoMITView on GitHub

Promote a quick-and-dirty prototype to an lgtm-hq-standard repo - commit WIP lint-clean, grill the design, spec the backlog as milestone/epic/issue tree, then implement issue by issue. Use when asked to properize, productionize, or turn a prototype into a proper project.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do NOT do this. Do: commit → grill → recon → spec → implement, one stage at a time, stopping between stages for the artifacts to exist and …

    line 25
  2. Distinctive:

    Before any design discussion, get the current state to a lint-clean, committed baseline:

    line 32
  3. Distinctive:

    Do not refactor or redesign here — only make the WIP lint-clean and historied.

    line 44
  4. Distinctive:

    Do not proceed to standards recon until these questions have answers.

    line 67
  5. Distinctive:

    Run this recon after grilling and before stage 4 so branch rulesets and CI requirements shape the backlog.

    line 73
  6. Distinctive:

    Do not create milestones, epics, or issues until this recon is complete.

    line 92
  7. Very specific:

    Only after the tree exists: implement issues one at a time, small PRs, per the pr skill (or hand the whole ready backlog to …

    line 111
  8. Distinctive:

    Stage order is not negotiable: Do not run standards recon before the design has been grilled, do not spec issues before recon is done, and …

    line 119

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Properize

Turn "I hacked this together for myself, it's AI slop, but I want it proper now" into a repo that meets lgtm-hq standards. This skill sequences other skills into one pipeline — it composes commit, design grilling, issue, and implement-issues/pr, it does not replace them. Never skip a stage or collapse two stages into one session; each stage produces an artifact (commits, a design decision, an issue tree) the next stage depends on.

The mistake this skill prevents

The default failure mode is jumping straight from "make this proper" to writing a full implementation plan and executing it in one pass — no commit checkpoint, no design interrogation, no issue trail. That produces an unreviewable mega-diff and bakes in whatever the prototype already got wrong. Do NOT do this. Do: commit → grill → recon → spec → implement, one stage at a time, stopping between stages for the artifacts to exist and be reviewable.

Pipeline

1. Commit the WIP first

Before any design discussion, get the current state to a lint-clean, committed baseline:

  • Drive uv run lintro chk to 0 issues. Fix real bugs the gate surfaces (missing imports, undefined names, missing arguments, type errors, dead-code/unused-variable warnings) rather than suppressing them — a lint gate on a prototype routinely finds actual bugs, not just style nits.
  • Land signed, semantic commits grouped by domain, not one giant commit. For example: a cleanup pass, then commits per feature area (e.g. discover, playlists), then app-infra, then a trailing chore for anything left over. Follow the commit skill for message format and signing.
  • Do not refactor or redesign here — only make the WIP lint-clean and historied. Design changes belong in the next stage.

2. Grill the design

Stress-test the full design before writing any spec. Prefer the external grilling skill when it is installed (e.g. mattpocock/grilling via the vendor catalog); otherwise run the same interview inline. One question at a time, waiting for an answer before the next — do not batch questions. Recommend an answer with each question. Cover at least:

  • Audience and multi-tenancy (single-user tool vs. shared service?)
  • Data storage (what DB, migrations, backups?)
  • Auth (who can access it, how?)
  • Background jobs / scheduling
  • Configuration and secrets management
  • Deployment target and process
  • Documentation expectations (README, ADRs?)
  • Scope freeze — what's explicitly out of scope for v1
  • Observability (logging, metrics, error tracking)
  • Testing strategy and coverage bar
  • Issue granularity for the next stage (how small is "one PR"?)

Do not proceed to standards recon until these questions have answers. If the user defers a question, record the deferral explicitly rather than assuming a default.

3. Standards recon (before writing issues)

Run this recon after grilling and before stage 4 so branch rulesets and CI requirements shape the backlog. Treat it as a checklist of repeatable commands, not a judgment call:

  • Fetch winnow workflows as the gold-standard CI reference (full workflow set).
  • Fetch lgtm-ci reusable workflows pinned to a release SHA (plus the tooling-ref pin), not a floating tag.
  • Fetch the org's rulesets for the target repo (checks-<repo>) via gh api repos/<owner>/<repo>/rulesets (or the org-level ruleset endpoint) so branch-protection requirements are known before issues are written.
  • Bring in the standard community-files set: .editorconfig, SECURITY.md, Renovate config, gitleaks config, and equivalents already used across lgtm-hq repos.
  • Make lintro the sole lint/format entry point — no bare ruff/eslint/ etc. invocations left in scripts or CI.
  • Wire releases through the version-PR + auto-tag flow used elsewhere in lgtm-hq, not manual tagging.

Do not create milestones, epics, or issues until this recon is complete.

4. Spec the backlog as milestones, epics, and issues

Turn the grilled design into a milestone → epic → issue tree:

  • Milestones group epics by release/phase.
  • Epics group issues by feature area.
  • Issues are one-PR-sized. Every code issue gets an AI Implementation Prompt comment in the issue skill's format (see skills/issue/SKILL.md), so any issue is fan-out-ready for implement-issues without rework.
  • Generalize the issue-generation script pattern (Python + gh calls creating milestones, epics, and issues from a structured spec) into a repo-agnostic template rather than a one-off script tied to this repo's domain. Keep the domain content (titles, bodies, prompts) separate from the generation mechanics so the template is reusable on the next prototype.

5. Implement, issue by issue

Only after the tree exists: implement issues one at a time, small PRs, per the pr skill (or hand the whole ready backlog to implement-issues for parallel, worktree-isolated lanes). Never batch unrelated issues into one PR to save time — the point of stage 4 was to make each unit reviewable on its own.

Guardrails

  • Stage order is not negotiable. Do not run standards recon before the design has been grilled, do not spec issues before recon is done, and do not implement before the issue tree exists.
  • Stop between stages. Each stage's artifact (commit history, recorded design decisions, recon notes, the issue tree) should be reviewable before the next stage starts — do not silently chain all five stages into one unattended run.
  • A stage that cannot stay green (lint, tests, or an unanswered blocking design question) stops and reports rather than pushing through.
  • This skill never merges — implementation PRs follow the normal review and merge process for the target repo.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.