Logo Production Skeleton

Production Skeleton

Cộng đồng
hallikkristjan-code
production-skeleton

The foundation to lay before the first feature, not an audit — 13 gates (CI, dependency updates, env example, human-gates register, error tracking, /health, backup drill, rollback runbook, timeouts, CSRF, security headers, limits + retention, privacy page). Use before the first feature of a new project, even in an empty folder; /skeleton shows which gates exist (read-only scorecard), /skeleton fix writes the missing files (dry-run by default); on a grown app it checks the foundation is still there. Also read HUMAN-GATES.md aloud at session start when it has open lines.

Tổng quan

Nhà phát hànhhallikkristjan-code
Kho mãproduction-skeleton
Tên kỹ năngproduction-skeleton
Sao
37
Bản fork
6
Tệp đi kèm
24
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 24 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được hallikkristjan-code công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Production Skeleton trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/hallikkristjan-code/production-skeleton/tree/main/skills/production-skeleton
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hallikkristjan-code/production-skeleton.git /tmp/production-skeleton
mkdir -p .claude/skills
cp -r /tmp/production-skeleton/skills/production-skeleton .claude/skills/production-skeleton
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Production Skeleton trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Production Skeleton ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Production Skeleton không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

production-skeleton

Skeleton, not audit. Probes, not prose. 13 gates, not 90.

A skeleton is the floor you build before the first feature. Run this skill first, in an empty folder if need be: it says which of the 13 gates exist, generates the missing files for known stacks, and keeps a register of the things only a human can do. On a grown app the same probe checks the floor is still there. skeptic-review (same repo) is the audit that proves the floor holds.

Contents: Commands · Session start · Statuses · Stages · HUMAN-GATES.md · Evidence paths · What the probe does not do · After the scorecard

Commands

SayRunsChanges files?
/skeletonnode <skill>/scripts/probe.mjs .No
/skeleton --url https://app.exampleprobe + 2 live checks (health, headers), GET requests onlyNo
/skeleton --url https://app.example --csrf-postthe same + 1 cross-origin POST to /api/healthNo files; it sends a write request to that server
/skeleton --no-auditprobe without the npm audit call (offline, or a slow registry)No
/skeleton fixnode <skill>/scripts/fix.mjs . — plan onlyNo
/skeleton fix --writegenerates missing files, appends human gatesYes, never overwrites

<skill> is this skill's directory. Show the scorecard verbatim; do not paraphrase the statuses.

Gate 2 runs npm audit --json against package-lock.json when one exists, or pip-audit for a Python project (requirements.txt, or uv.lock exported with uv export to a temp file) (network, ~3 s); any high or critical finding turns the gate FAIL with the count. A missing lockfile, unsupported input, skipped package or offline registry is UNKNOWN and not verified. Python input must be exact pinned requirements; --no-deps --disable-pip prevents resolving or building it. Supply a complete resolved export for transitive dependencies.

What --url sends: GET /api/health (falling back to GET /health) and GET / (following redirects, headers only). Nothing else. --csrf-post adds POST /api/health with a foreign Origin header and an empty JSON body; the response is diagnostic only and gate 10 remains UNKNOWN because health cannot prove mutation-route protection. The POST is a write request and the probe cannot know what it does on a server, so never add --csrf-post on your own: use it only when the user asks for the live CSRF check on an app they own. "Read-only" describes the repo, not what a remote server does with a request.

fix writes only what can work in the project it finds, and says why it skipped the rest (skip-requires, manual). The one adapter is Next.js (15 or newer for the health route) + Supabase + Vercel: routes go under src/app when the app lives there; a Pages Router project, or one where src/app/ sits next to a root app/ or pages/ (Next.js ignores src/ then), gets a manual step instead of a route file; the CI workflow is an npm + TypeScript template that needs package-lock.json, typescript and both a test and a build script (with pnpm, yarn or bun the user writes it by hand); the .ts helpers need typescript. Read the plan's Action column to the user instead of promising that everything was generated.

The backup workflow it generates dumps the Postgres schema public only (no auth users, no Storage files), keeps each encrypted dump as a 90-day artifact, refuses to run in a public repository, and commits nothing to the repo unless the owner opts in. The restore drill ships without a date: gate 7 stays FAIL until a human has restored into a throwaway database. Never write a drill date for a restore that did not happen.

Session start (gate 4)

If HUMAN-GATES.md exists and has open - [ ] lines, list them before any feature work — the created date, the text, the due date. Stop listing when the file is empty. A line past stale_days (default 7) or past its due: turns the gate STALE; say so.

Statuses

  • PASS — evidence found. Notes marked static: were checked in the repo only; pass --url to check them live. PASS means the probe found the pattern, not that it works end to end. Comments are never evidence — whole-line, trailing or block: # npm test is not a CI step, // TODO timeout is not a timeout. A gate 10/11 helper counts only when the framework loads it (middleware, proxy, next.config, settings.py, …) or another source file imports it — after fix --write, wire the helpers in before those gates turn green. Gates 7, 9 and 12 are heuristics (a backup job name, a timeout near a call, a cleanup job); the live checks and the audit skill are the stronger proof. Gate 5 is always static:: a tracker init with its DSN key, or a hand-rolled reporter that has a body, is called, and whose alert address is named in config and read in a file that defines or calls a reporter. An empty recordError() {} plus a key name does not pass. The probe cannot tell a reporter that sends from one that only logs, and it cannot see an alert arrive, so never say "errors reach a human" as a tested fact: say the path is wired and delivery is untested.
  • FAIL — evidence missing. The note says what was looked for and where.
  • STALE — evidence exists but is too old (restore drill > drill_max_days, human gate past due).
  • UNKNOWN — the probe tried to verify and could not: gate 2's audit did not run (offline, tool missing, no lockfile), or --url was given and the live request for gate 6, 10 or 11 failed. Counts as not passed. --no-audit is a deliberate opt-out: gate 2 then passes on its config and says so.
  • N/A — not applicable: stage 0 (no deploy target) makes gates 5–13 N/A; any gate can be declared N/A in HUMAN-GATES.md frontmatter with a reason. No reason → FAIL. Gate 2 is N/A when the repo has no dependency manifest. fix never writes files or adds human gates for an N/A gate.

Score: x/y required · x/13 total, n n/a. Required = gates at or below the detected stage. The badge counts total.

Stages

Detected from the code and shown with the reason:

  • 0 library — no server framework, no deploy file, no bundled single-page app (Vite config, CRA, Angular). Gates 1–4 only.
  • 1 tool — deploys somewhere. Gates 1–4 required.
  • 2 product — personal data: an auth library or an email|phone|name|address column in a migration. Gates 1–9 required.
  • 3 service — payments (stripe, paddle, …). All 13 required.

Override in HUMAN-GATES.md frontmatter: stage: 2.

HUMAN-GATES.md

markdown
---
stage: 2
stale_days: 7
drill_max_days: 90
privacy: app/legal/page.tsx
na:
  7: managed database with provider snapshots, restore tested 2026-09-01
---
- [ ] 2026-09-12 Add SENTRY_DSN to the hosting env (due: 2026-09-19)
- [x] 2026-09-01 Commit the backup public key

Every frontmatter key is optional; na is a map of gate number → reason, and an entry without a reason counts as FAIL.

The date is the day the line was written. fix --write appends lines for the things it cannot do itself (secrets, DNS, vendor accounts).

Evidence paths (fixed, convention over configuration)

  • .env.example (or .env.sample / .env.template) — every env var read in source needs a key there; and no .env* other than those may be tracked in git. A tracked one FAILs gate 3 with its first-commit date, because adding it to .gitignore later removes nothing from history: rotate first, then purge.
  • docs/ops/restore-drill.md — the drill date is the first YYYY-MM-DD right after a label (Date:, Last drill:, Viimane proov:, any language). A label that names a plan (Next, Planned, Due) does not count.
  • docs/ops/rollback.md — must mention code/deploy, schema/migration, and data.
  • a file or route named privacy (English, eight other languages — privacidad, datenschutz, andmekaitse, confidentialité, integritetspolicy, tietosuoja, personvern, privatlivspolitik — or gdpr), or the file named by the privacy: key in HUMAN-GATES.md frontmatter; it must be linked as a route from a source file (a /stem reference), not just mentioned in a README.

What the probe does not do

No performance, SEO, accessibility, code quality, or deep OWASP. Those are other tools' jobs. Security depth: run /cso or a proper pentest.

After the scorecard

End with I can do this now: — 1–3 numbered lines, only actions the agent can take in this environment (write a file, run fix --write, add a test), ordered by risk, not ease. Do not run them; wait for a number.

When gate 5 passes and HUMAN-GATES.md has no line about it, offer to add one: "Throw one test error in production and confirm the alert reaches you". Do not send test alerts yourself.

Coverage limits

Read JSON coverage before interpreting a score: audit lists manifest results, manifestsNotRead includes unsupported manifests and partially parsed TOML, and notScanned counts unsupported extensions, including Vue/Svelte/Astro. Probe nested applications in their own directory. Do not call uncovered projects clean or ready. Generated registers leave stage automatic; deliberate lower overrides remain with a warning. Record only completed restore drills in a Date/Last drill/Last run/Completed field. Static import chains and CI checks are heuristics; verify execution separately.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Production Skeleton làm được gì?

The foundation to lay before the first feature, not an audit — 13 gates (CI, dependency updates, env example, human-gates register, error tracking, /health, backup drill, rollback runbook, timeouts, CSRF, security headers, limits + retention, privacy page). Use before the first feature of a new project, even in an empty folder; /skeleton shows which gates exist (read-only scorecard), /skeleton fix writes the missing files (dry-run by default); on a grown app it checks the foundation is still there. Also read HUMAN-GATES.md aloud at session start when it has open lines.

Vì sao nên dùng Production Skeleton trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Production Skeleton là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Production Skeleton trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/hallikkristjan-code/production-skeleton/tree/main/skills/production-skeleton. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Production Skeleton?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Production Skeleton với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Production Skeleton với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Production Skeleton có miễn phí không?

Có. Kỹ năng này được hallikkristjan-code phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇