Loading...
Loading...
Deploy llmwiki từ đầu vào project mới — template pull, skill install, RTK, wiki seed, onboard
npx skill4agent add rheinmir/setup new-project-setupllmwiki/llmwiki/disable-model-invocation: truecheck llmwiki → sync-template (template + skills) → khung thư mục wiki → RTK (chỉ WSL) → seed (project-requirements + log + index) → onboard-codebase (concepts + entities + lint) → output report| Field | Required? | Ý nghĩa | |
|---|---|---|---|
| In | thư mục project | có | chạy tại root project |
| In | README.md, package.json hoặc go.mod | không | nguồn project name + stack cho seed |
| In | trả lời reset | khi | có reset hay không |
| Out | | có | khung thư mục + |
| Out | | có | frontmatter OKF + |
| Out | RTK đã hook | chỉ WSL | |
| Out | wiki đã onboard + draft output report | có | concepts/entities do onboard-codebase sinh |
uname -r | grep -qi microsoft~/.claude/settings.jsonrtk init -gllmwiki/| Step | Type | Inputs | Action | Outputs/exit | Failure/next |
|---|---|---|---|---|---|
| W01 | deterministic | project root | CHECK llmwiki tồn tại | | exists → B01 |
| W02 | effect | mạng | INVOKE sync-template: pull template + install skills | commands + skills đã cài | lỗi → failed |
| W03 | effect | — | Init wiki folder structure | khung thư mục | — |
| W04 | effect | OS | RTK token proxy (WSL only) — B02 | RTK hooked | không WSL → skip; thiếu hook → MANUAL |
| W05 | judgment | README/package.json/go.mod | Seed wiki: project-requirements, log, index | trang seed | — |
| W06 | effect | codebase | INVOKE onboard-codebase | concepts + entities + lint | lỗi → failed |
| W07 | effect | kết quả | Output Report draft | draft + index + log | — |
test -d llmwiki && echo exists || echo missingexistsconcepts/entities/log.mdsources/# INVOKE: sync-template
# sync-template tự pull từ rheinmir/setup@orca và install skills vào:
# .claude/commands/ → Claude Code
# ~/.agents/skills/*/SKILL.md → OpenCode / Antigravitymkdir -p llmwiki/wiki/{concepts,entities,sources/draft} llmwiki/{skills,raw}
touch llmwiki/wiki/index.md llmwiki/wiki/log.md llmwiki/raw/.gitkeep# Guard — chỉ chạy trong WSL:
uname -r | grep -qi microsoft || { echo "RTK install: WSL only — skip"; exit 0; }
# CHECK đã cài chưa:
rtk --version 2>/dev/null || {
curl -fsSL https://github.com/rtk-ai/rtk/releases/latest/download/rtk-x86_64-unknown-linux-musl.tar.gz \
| tar xz -C /usr/local/bin
}
# Init global config + patch ~/.claude/settings.json:
rtk init -g
# Verify hook:
grep -q "rtk hook claude" ~/.claude/settings.json && echo "RTK hooked" || echo "MANUAL: add rtk hook to settings.json"# Đọc README.md, package.json hoặc go.mod → project name + stackllmwiki/wiki/sources/project-requirements.md## Origin---type_template.md**Type:**llmwiki/wiki/log.md## YYYY-MM-DD — init — <project-name>llmwiki/wiki/index.mdconcepts/entities/| ID | Kind | Guard | Hành vi | Skip / failure | Rejoin |
|---|---|---|---|---|---|
| B01 | conditional_required | W01 trả | hỏi user reset; reset = xóa | user không reset → dừng | W02 |
| B02 | conditional_required | kernel chứa "microsoft" (WSL) | cài RTK nếu chưa có, | không WSL → skip bước 4 | W05 |
test -d llmwikiexistsproject-requirements.mdtype## Originllmwiki/missinggo.modDDMMYY-init-<project>.mdllmwiki/existsconcepts/entities/log.mdsources/DDMMYY-<ten>.mdDDMMYY020626<ten>landing-page-cotecconsbrand-kit-fintechingest-auth-specllmwiki/wiki/sources/draft/DDMMYY-<ten>.md---
type: draft
title: "DDMMYY-<ten>"
status: proposed
tags: [<skill-name>, output-report]
timestamp: YYYY-MM-DD
---
# DDMMYY-<ten>
**Type:** draft
**Status:** proposed
**Tags:** <skill-name>, output-report
**Proposed:** YYYY-MM-DD
## What
<One sentence — what this skill invocation produced or decided>
## Output
<Key artefacts, files created/modified, or decisions made>
## Files
| File | Action |
|------|--------|
| `path/to/file` | created / modified |
## Notes
- Invoked via: `/<skill-name>` skill
## Origin
- **Draft:** `wiki/sources/draft/DDMMYY-<ten>.md`
- **Commit:** _(filled by verify-before-commit)_
- **Date promoted:** _(filled by verify-before-commit)_llmwiki/wiki/index.md| [DDMMYY-<ten>](sources/draft/DDMMYY-<ten>.md) | draft | YYYY-MM-DD |llmwiki/wiki/log.md## YYYY-MM-DD — <skill-name> — <ten>Skip only when the skill produces zero artefacts and zero decisions (e.g., a pure display mode like)./caveman-stats