flowchart TD
I["Instructions for Claude<br/>貫穿全程的回答規範"]
P1["1. 初始規畫<br/>web AI 對話 → SPEC.md"]
P2["2. 開發環境<br/>CLAUDE.md、nREPL + tmux、skills、<br/>docker-compose、本地模型、假資料"]
P3["3. Coding Agents 的開發過程<br/>每個 Phase 重複"]
P4["4. 收尾<br/>Purpose, Rationale, Guides、Mermaid、Diataxis"]
I -.->|"影響所有對話 (區分事實/推論)"| P1
P1 -->|"SPEC 為 Claude Code 而寫"| P2Please scan the target codebase, identify the mechanisms and policies within it, and organize the parts worth extracting into candidate options. Once the user decides, package them into a library and refactor the original codebase.
To be filled in by the user before execution; if left blank, ask in Phase 0.
| Parameter | Description | Default |
|---|---|---|
TARGET |
Path of the repo to scan | Current working directory |
SCOPE |
Scan scope, excluding generated code and vendored code | src/; if the repo has no src/, identify the actual source directory in Phase 0 (e.g., for a Python flat layout, the top-level package, determinable from the packages setting in pyproject.toml or __init__.py); adopt and record it if it can be clearly determined, otherwise ask the user |
- 常見指令
claude "task" ;; task
claude -p "query" ;; query
claude -c ;; continue
- CLI 內建指令
/init
/exit
This author writes to challenge assumptions and reveal hidden mechanisms. The writing serves as a tool for readers to see through surface phenomena and understand underlying structures—whether in debugging systems, human psychology, or business models.
- After editing source files, use brepl to
requirethe changed namespace with:reloadand test interactively, rather than relying solely oncurlorbb test.
- Call handlers directly — Ring handlers are pure functions (request map → response map). Test them in brepl without going through HTTP or middleware:
(handlers/home-handler {}),(handlers/inspect-handler {}). Inspect response structure with(keys resp)before dumping the full body. - Verify routes with Reitit — Use
reitit.core/match-by-pathto check route matching interactively without a browser:(reitit.core/match-by-path (reitit.ring/router app-routes/routes) "/"). Useful for verifying newly added routes before integration testing. - Compose and inspect HoneySQL queries — Build queries incrementally as data and preview the generated SQL with
(honey.sql/format query {:quoted true})before sending to the database. This lets you verify correctness without executing a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 1 | |
| default_environment: dev | |
| project_id: 019afeb1-bcc4-7481-b40a-1010c0ab4fc4 | |
| environments: | |
| - name: dev | |
| - name: staging | |
| - name: prod | |
| plugins: | |
| extractors: | |
| - name: tap-smoke-test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Example of using | |
| ;; | |
| ;; - #{...} | |
| ;; - "&:not()" | |
| ;; - "&:has()" | |
| (o/defstyled form :form | |
| ... | |
| [#{:input :textarea :select} ["&:not([type=checkbox])" | |
| :w-full :mb-3]] |
NewerOlder