Logo Absolute Init

Absolute Init

Cộng đồng
maddhruv
absolute-init

One-time setup for absolute: interview how you want it to behave (output style, autonomy, TDD strictness, spec dir, families) + detect the stack once, then write `.absolute.config.json` (project, committed) and `~/.absolute/config.json` (user defaults + per-project overrides). Every other absolute-* command reads it instead of re-detecting; non-blocking — commands proceed without it and soft-recommend it. Triggers on "absolute init", "set up absolute", "initialize absolute", "configure absolute", "first-time setup", "remember my conventions for this repo".

Tổng quan

Nhà phát hànhmaddhruv
Kho mãabsolute
Tên kỹ năngabsolute-init
Sao
223
Bản fork
30
Tệp đi kèm
Chỉ có hướng dẫn
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 dùng hướng dẫn viết bằng Markdown thay vì 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ộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được maddhruv công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Absolute Init 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 của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/maddhruv/absolute/tree/main/skills/absolute-init
  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/maddhruv/absolute.git /tmp/absolute
mkdir -p .claude/skills
cp -r /tmp/absolute/skills/absolute-init .claude/skills/absolute-init
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 Absolute Init 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ự nạp Absolute Init 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 bạn có thể dùng Absolute Init với cả những mô hình khác ngoài mô hình ban đầu. 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 khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổ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.

"set up / initialize / configure absolute"). Start your first response with the ⚙️ emoji.

Absolute Init

One-time setup. Detect the project's real conventions, ask a few questions about how you want absolute to behave, then write that to JSON config the other ten commands read on every run. Result: commands stop re-detecting your stack from scratch and respect your preferences (output style, gating, TDD strictness) without being told each time.

This is the only command that writes config. It is non-destructive: an existing config is shown and updated, never blindly overwritten. It never commits.


When to use

  • First time using absolute in a repo — gives every command cached conventions + your preferences.
  • Conventions changed (new package manager, new test/lint scripts, branch rename) — re-run to refresh.
  • You want to change how absolute behaves globally (output style, autonomy) across projects.

Other commands run fine without init — they fall back to on-the-fly detection and emit a one-line suggestion to run it. init just makes them faster and tailored.


Key principles

  1. Codebase before questions. Detect everything detectable first. Only ask what the repo can't tell you (preferences, ambiguous choices).
  2. A few questions, not a grill. ~4-6 max, one at a time. This is setup, not design review.
  3. Non-destructive. Existing config → show it, confirm each change, merge — don't clobber.
  4. Never auto-commit. Write the project file; tell the user to commit it. (Commit policy itself is not configurable — absolute never commits.)
  5. Two levels, project wins. Project config is team-shared and authoritative; global is your personal default + per-project overrides.

Step 1 — DETECT

Auto-detect the stack using the Codebase Convention Detection table in references/work.md (package manager, language/runtime, test runner, linter/formatter, build, CI, available scripts). Resolve each to the project's own script form (npm test, make lint) so cached commands match CI — not raw tools.

Read the actual package.json scripts / Makefile targets to fill test, lint, typecheck, format, build. Detect the default branch with git symbolic-ref --short refs/remotes/origin/HEAD (fallback main). Anything you can't resolve confidently → leave it out and ask, or omit.

Also detect, from deps and marker files (omit the whole block if nothing is found):

  • conventions.format — formatter script: package.json format/fmt scripts, a Makefile format target, ruff format, or gofmt.
  • conventions.ui — from package.json deps: framework (react/vue/svelte/none), styling (tailwindcss → tailwind; css-modules; styled-components; else vanilla), iconLibrary (lucide-react, @heroicons/, @phosphor-icons/, react-icons…), componentLib (shadcn marker / @mui/material → mui / @chakra-ui → chakra / none), and tokensPath (a tokens/theme CSS or TS file if one exists). Omit if the repo has no UI deps.
  • conventions.docs — stack + dir via absolute-docs's Stack Detection marker-file table (source.config.ts/fumadocs, docusaurus.config.*, Starlight, mkdocs.yml, .vitepress/, Mintlify, else markdown). Omit if no docs are present.

Step 2 — RESOLVE existing config

Before asking anything, check for existing config (precedence below). If found, print a compact summary of current values and ask whether to update (default) or start fresh. Treat existing values as the defaults for the interview so the user can keep them with one keystroke.

Step 3 — INTERVIEW

Use AskUserQuestion for every preference question. Present options as structured choices with descriptions; mark the recommended/default option first with "(Recommended)" in its label. Ask questions one at a time — wait for each answer before advancing.

Questions (skip any the existing config already answers, unless user asked to reconfigure):

Q1 — Output style

question: "Output style?"
header: "Output style"
options:
  - label: "normal (Recommended)"
    description: "Full prose, explanations — good for onboarding or unfamiliar codebases"
  - label: "terse"
    description: "Compressed, minimal prose — matches caveman mode"

Q2 — Autonomy

question: "Autonomy level?"
header: "Autonomy"
options:
  - label: "gate-all (Recommended)"
    description: "Confirm before every change/wave — full control"
  - label: "auto-low-risk"
    description: "Auto-apply obviously-safe health waves, gate risky ones"

Q3 — TDD strictness

question: "TDD strictness?"
header: "TDD"
options:
  - label: "strict (Recommended)"
    description: "Test-first, red→green — failing test must exist before any code"
  - label: "pragmatic"
    description: "Tests required but not strictly written first"

Q4 — Spec / docs output dir Ask as free text: "Where should spec/work write design docs? (default: docs/plans)". Accept blank to keep default.

Q5 — Relevant families

question: "Which command families do you use?"
header: "Families"
multiSelect: true
options:
  - label: "build (Recommended)"
    description: "work, spec, ui, simplify, docs"
  - label: "health (Recommended)"
    description: "upgrade, audit, prune, debt, deflake"

Q6 — Confirm detected conventions Show the detected conventions block as a code block and ask: "Are these correct? Reply with any corrections or press enter to accept.". Accept blank to proceed.

Step 4 — WRITE

Write .absolute.config.json at the repo root (pretty-printed, 2-space). This is the committed, team-shared file. Then ask whether to also persist to the global file ~/.absolute/config.json:

  • defaults.preferences — your cross-project preference defaults.
  • projects["<absolute repo path>"] — a per-project override entry (machine-local, not committed).

Merge into any existing global file; never drop unrelated keys. After writing, print the file paths and remind the user to commit .absolute.config.json (you never commit).


Config schema

Both files share conventions + preferences; the global file wraps them.

.absolute.config.json (project, committed):

json
{
  "version": 1,
  "conventions": {
    "packageManager": "npm",
    "languages": ["typescript"],
    "test": "npm test",
    "lint": "npm run lint",
    "typecheck": "npm run typecheck",
    "format": "npm run format",
    "build": "npm run build",
    "ci": ".github/workflows/ci.yml",
    "defaultBranch": "main",
    "ui": {
      "framework": "react",
      "styling": "tailwind",
      "iconLibrary": "lucide-react",
      "componentLib": "shadcn",
      "tokensPath": "src/styles/tokens.css"
    },
    "docs": {
      "stack": "fumadocs",
      "dir": "docs"
    }
  },
  "preferences": {
    "outputStyle": "normal",
    "autonomy": "gate-all",
    "tdd": "strict",
    "specDir": "docs/plans",
    "boardTracking": "gitignored",
    "families": ["build", "health"],
    "health": {
      "protectedPaths": ["dist/**", "vendor/**", "**/*.generated.*"],
      "deflakeRuns": 20
    }
  }
}

The conventions.ui and conventions.docs blocks are omitted entirely when nothing is detected (no UI deps, no docs stack), keeping the file minimal.

~/.absolute/config.json (user/global):

json
{
  "version": 1,
  "defaults": {
    "preferences": {
      "outputStyle": "normal",
      "autonomy": "gate-all",
      "tdd": "strict",
      "specDir": "docs/plans",
      "families": ["build", "health"]
    }
  },
  "projects": {
    "/Users/you/dev/your-repo": {
      "conventions": { "packageManager": "pnpm", "test": "pnpm test" },
      "preferences": { "outputStyle": "terse" }
    }
  }
}

Field meanings:

FieldValuesEffect
conventions.*stringsCached stack/scripts every command runs through instead of re-detecting.
conventions.formatstringFormatter script — simplify/debt run it instead of re-detecting.
conventions.uiobjectCached framework/styling/iconLibrary/componentLib/tokensPath — ui adopts these instead of assuming Tailwind / guessing the icon library.
conventions.docsobjectCached docs stack + dir — docs skips marker-file re-detection.
preferences.outputStylenormal | terseVerbosity of command responses.
preferences.autonomygate-all | auto-low-riskWhether health commands auto-apply safe waves.
preferences.tddstrict | pragmaticwork's test-first rigor.
preferences.specDirpathWhere spec/work write design docs.
preferences.boardTrackinggitignored | git-trackedWhether work's .absolute-work/board.md is committed — set once instead of asked each intake.
preferences.families["build","health"] subsetTrims the no-arg menu to what you use.
preferences.health.protectedPathsglob[]Never-delete globs prune honors (generated/vendored code).
preferences.health.deflakeRunsintDefault N repeat-runs deflake uses to establish flakiness.

Precedence (how commands read config)

At the start of any command, resolve effective config by overlaying, highest wins:

  1. ./.absolute.config.json (project, committed)
  2. ~/.absolute/config.json → projects["<cwd absolute path>"]
  3. ~/.absolute/config.json → defaults

Shallow-merge conventions and preferences separately; merge the nested conventions.ui, conventions.docs, and preferences.health blocks one level deeper so a partial override doesn't drop sibling keys. If none exist, there is no config — the command soft-recommends init and uses on-the-fly detection.


Gotchas

  1. Overwriting a hand-tuned config. Always RESOLVE first; merge, don't clobber.
  2. Caching wrong commands. Cached test/lint that don't match CI poison every later command — verify each detected script actually runs.
  3. Committing the global file. ~/.absolute/config.json is machine-local; only .absolute.config.json is committed.
  4. Stale conventions. A renamed branch or swapped package manager silently misroutes commands — re-run init after stack changes.
  5. Treating init as a gate. It isn't. Commands proceed without it; init is an optimization, not a prerequisite.

Companion commands

  • /absolute work — the main consumer of cached conventions + tdd/autonomy/boardTracking prefs.
  • /absolute spec — reads conventions + specDir instead of re-detecting.
  • /absolute ui — reads conventions.ui (framework, styling, icon library, tokens path).
  • /absolute simplify — reads cached test/lint/format/typecheck for auto-verify.
  • /absolute docs — reads conventions.docs (stack, dir), skipping marker re-detection.
  • /absolute-upgrade|audit|prune|debt|deflake — health family reads conventions for DETECT, autonomy for gating, and preferences.health.* (prune protectedPaths, deflake deflakeRuns).
  • Re-run /absolute init anytime conventions or preferences change.

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

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

One-time setup for absolute: interview how you want it to behave (output style, autonomy, TDD strictness, spec dir, families) + detect the stack once, then write `.absolute.config.json` (project, committed) and `~/.absolute/config.json` (user defaults + per-project overrides). Every other absolute-* command reads it instead of re-detecting; non-blocking — commands proceed without it and soft-recommend it. Triggers on "absolute init", "set up absolute", "initialize absolute", "configure absolute", "first-time setup", "remember my conventions for this repo".

Vì sao nên dùng Absolute Init 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. Absolute Init 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 Absolute Init trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/maddhruv/absolute/tree/main/skills/absolute-init. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để 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 Absolute Init?

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.

Có thể dùng Absolute Init 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 Absolute Init 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 Absolute Init có miễn phí không?

Có. Kỹ năng này được maddhruv 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 các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công 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à những tiêu chí mà kết quả cần đáp ứng. 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 👇