unix-init
Initialize bounded physical disk state (.state/) in current workspace with real Makefile and SysV runlevel latches.
Skill by john20xdoe
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/john20xdoe-unix-init
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/unix-init
What's inside
- Skill name
unix-init- Description
- Initialize bounded physical disk state (.state/) in current workspace with real Makefile and SysV runlevel latches. Usage: /unix-init [--force] [--verify-cmd "<cmd>"] [--track-governance] [<ticket-id>] [<title>]
- License
- MIT
- Instructions
- 16 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Unix State Init ## Direct Execution Protocol Execute initialization directly using native workspace file tools (`write_to_file`, `view_file`, `list_dir`). Do NOT invoke shell commands (`run_command`) or python scripts—native tool execution avoids repeated IDE permission prompts on variable ticket arguments. ### Arguments * `<ticket-id>`: Unique ticket identifier (default: `TICKET-01`). * `<title>`: Ticket summary or title (default: `Task Execution`). * `--force`: Archive active ticket and overwrite existing state. * `--verify-cmd "<cmd>"`: Set repo verification command in `.unix-primitives`. * `--track-governance`: Exclude `00_governance.md` from `.state/.gitignore`. --- ## Step-by-Step Procedure ### 1. Active State Check Check if `.state/10_ticket.md` exists: * If exists and `--force` is **not** set: Fail immediately: `Error: active ticket <TICKET-ID> exists; run /unix-clean first or pass --force` * If exists and `--force` **is** set: Read `Ticket-ID` from `10_ticket.md` (fallback: `previous`). Read contents of all existing transient latches (`10_ticket.md`, `20_plan.md`, `30_tdd_red.md`, `40_impl_green.md`, `99_next_action.md`). Append to `.state/archive/<ticket-id>.log` under header `=== ARCHIVED <ISO-timestamp> ===\n`. Delete previous transient latch files and any files under `.state/artifacts/`. ### 2. Write `.state/.gitignore` Write `.state/.gitignore`: ``` # Prevent agent transient latches from polluting repository history * !.gitignore ``` If `--track-governance` is specified, append: ``` !00_governance.md ``` ### 3. Write `.state/00_governance.md` If `.state/00_governance.md` does not already exist, write: ```markdown # Root Governance & Invariants - State Recovery: On session start or compaction, inspect .state/ and resume from highest runlevel. - Invariant: Build and tests must pass at every milestone gate. - Circuit Breaker: Trips at k=2 consecutive failures -> halt and escalate. - Anti-Bloat: Active latches strictly bounded. ``` ### 4. Write `.state/10_ticket.md` Write RFC 822 formatted header: ```markdown Ticket-ID: <ticket-id> Title: <title> Status: IN_PROGRESS Created: <ISO-timestamp> Timestamp: <ISO-timestamp> ## Requirements <title> ``` ### 5. Write `.state/99_next_action.md` Write volatile progress pointer: ```markdown Target: 10_ticket.md Status: DRAFT_PLAN Next-Action: plan Ticket-ID: <ticket-id> Timestamp: <ISO-timestamp> ``` ### 6. Write `.state/Makefile` Write deterministic build and milestone DAG: ```makefile STATE_DIR := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))) REPO_ROOT := $(patsubst %/,%,$(dir $(STATE_DIR))) .PHONY: all status clean verify ci-gate all: status # Physical disk milestone targets $(STATE_DIR)/20_plan.md: $(STATE_DIR)/10_ticket.md @echo "Awaiting plan creation and human signoff" $(STATE_DIR)/30_tdd_red.md: $(STATE_DIR)/20_plan.md @echo "Awaiting TDD test creation" $(STATE_DIR)/40_impl_green.md: $(STATE_DIR)/30_tdd_red.md @echo "Awaiting implementation verification" ci-gate: $(STATE_DIR)/40_impl_green.md @python3 ~/.gemini/config/skills/unix-primitives/scripts/state_manager.py verify --workspace "$(REPO_ROOT)" status: @python3 ~/.gemini/config/skills/unix-primitives/scripts/state_manager.py status --workspace "$(REPO_ROOT)" clean: @python3 ~/.gemini/config/skills/unix-primitives/scripts/state_manager.py clean --workspace "$(REPO_ROOT)" ``` ### 7. Repo Verification Config (Optional) If `--verify-cmd "<command>"` is provided: Write or update `.unix-primitives` at repository root: ``` Verify-Command: <command> ``` ### 8. Confirmation Output Confirm state initialization to user: ``` Initialized physical disk state at: .state/ Active ticket: [<ticket-id>] <title> Disk slots strictly bounded. ```
From john20xdoe/unix-primitives, MIT.
More from john20xdoe/unix-primitives
- 0.570score
unix-primitives
john20xdoe
Refactor, convert, or generate system prompts, agent skills, cursorrules, CLAUDE.md, workflows, and README guidelines into canonical Unix & computer science…
SkillAFreshness: AClaude Code +9 - 0.561score
unix-stamp
john20xdoe
Write physical milestone latch to disk with named aliases (plan, tdd, impl).
SkillAFreshness: AClaude Code +9 - 0.556score
unix-clean
john20xdoe
Archive completed ticket latches and reset .state/ directory to clean slate (bounded active slots, archive rotated at 20 logs).
SkillAFreshness: AClaude Code +9 - 0.556score
unix-hook
john20xdoe
Manage optional git pre-push verification hook (allows commits unhindered, checks milestones on push).
SkillAFreshness: AClaude Code +9 - 0.553score
unix-status
john20xdoe
Inspect physical disk state runlevels, mtime timestamps, and staleness health in current workspace.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 14, 2026 (16 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/john20xdoe/unix-primitives
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from john20xdoe
- 0.570score
unix-primitives
john20xdoe
Refactor, convert, or generate system prompts, agent skills, cursorrules, CLAUDE.md, workflows, and README guidelines into canonical Unix & computer science…
SkillAFreshness: AClaude Code +9 - 0.561score
unix-stamp
john20xdoe
Write physical milestone latch to disk with named aliases (plan, tdd, impl).
SkillAFreshness: AClaude Code +9 - 0.556score
unix-clean
john20xdoe
Archive completed ticket latches and reset .state/ directory to clean slate (bounded active slots, archive rotated at 20 logs).
SkillAFreshness: AClaude Code +9 - 0.556score
unix-hook
john20xdoe
Manage optional git pre-push verification hook (allows commits unhindered, checks milestones on push).
SkillAFreshness: AClaude Code +9 - 0.553score
unix-status
john20xdoe
Inspect physical disk state runlevels, mtime timestamps, and staleness health in current workspace.
SkillAFreshness: AClaude Code +9
Cite this page
unix-init skill. Agent Mart. https://agentmart.dev/skills/john20xdoe-unix-init (last updated 2026-10-24)