~ / rigs / liuchengxu / dotfiles

liuchengxu/dotfiles

:nut_and_bolt: Dotfiles for bash, zsh, tmux, emacs, vim, etc

↗ GitHub ★ 215 no license updated 16d ago personal setup Claude Code
share on X
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
~2.2k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
0/5
No committed guardrails · details
Quality 0/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit liuchengxu/dotfiles/agents ./rig-dotfiles/agents

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit liuchengxu/dotfiles/agents/skills/adversarial-review .claude/skills/adversarial-review
$ npx degit liuchengxu/dotfiles/agents/skills/ask-models .claude/skills/ask-models
$ npx degit liuchengxu/dotfiles/agents/skills/code-minimalism .claude/skills/code-minimalism
$ npx degit liuchengxu/dotfiles/agents/skills/eli5 .claude/skills/eli5
$ npx degit liuchengxu/dotfiles/agents/skills/grafana-logs .claude/skills/grafana-logs
$ npx degit liuchengxu/dotfiles/agents/skills/shed .claude/skills/shed
$ npx degit liuchengxu/dotfiles/agents/skills/trim-docs .claude/skills/trim-docs
$ npx degit liuchengxu/dotfiles/agents/skills/vpn .claude/skills/vpn
$ npx degit liuchengxu/dotfiles/agents/skills/writing-docs .claude/skills/writing-docs
$ npx degit liuchengxu/dotfiles/agents/skills/writing-issues-and-prs .claude/skills/writing-issues-and-prs
$ curl -fsSL --create-dirs -o .claude/agents/task-implementer.md https://raw.githubusercontent.<redacted>-implementer.md
$ curl -fsSL --create-dirs -o .claude/agents/lore.md https://raw.githubusercontent.<redacted>.md
$ curl -fsSL --create-dirs -o .claude/agents/plan.md https://raw.githubusercontent.<redacted>.md
$ curl -fsSL --create-dirs -o .claude/agents/research.md https://raw.githubusercontent.<redacted>.md
$ curl -fsSL --create-dirs -o .claude/agents/resign-pr.md https://raw.githubusercontent.<redacted>-pr.md
$ curl -fsSL --create-dirs -o .claude/agents/review-plan.md https://raw.githubusercontent.<redacted>-plan.md
$ curl -fsSL --create-dirs -o .claude/agents/shed.md https://raw.githubusercontent.<redacted>.md
$ curl -fsSL --create-dirs -o .claude/agents/task-workflow.md https://raw.githubusercontent.<redacted>-workflow.md
$ curl -fsSL --create-dirs -o .claude/agents/MEMORY.md https://raw.githubusercontent.<redacted>-Users-xuliucheng--vim-plugged-vim-clap/MEMORY.md
$ curl -fsSL --create-dirs -o .claude/agents/MEMORY.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-ansible/MEMORY.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_minimal_instrumentation.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-ansible/feedback_minimal_instrumentation.md
$ curl -fsSL --create-dirs -o .claude/agents/MEMORY.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-btc-authz-committee/MEMORY.md
$ curl -fsSL --create-dirs -o .claude/agents/review-output-format.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-btc-authz-committee/review-output-format.md
$ curl -fsSL --create-dirs -o .claude/agents/MEMORY.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-btc-vault/MEMORY.md
$ curl -fsSL --create-dirs -o .claude/agents/pre-publish-challenge-gate.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-btc-vault/pre-publish-challenge-gate.md
$ curl -fsSL --create-dirs -o .claude/agents/MEMORY.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-contracts-aave-v4/MEMORY.md
$ curl -fsSL --create-dirs -o .claude/agents/MEMORY.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/MEMORY.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_anchor_on_user_scratch.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_anchor_on_user_scratch.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_changelog_one_line.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_changelog_one_line.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_dotfiles_sync.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_dotfiles_sync.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_global_todo_file.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_global_todo_file.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_impl_plan_before_coding.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_impl_plan_before_coding.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_iterative_review_inflation.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_iterative_review_inflation.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_local_nightly_fmt.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_local_nightly_fmt.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_new_worktree_per_fix.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_new_worktree_per_fix.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_no_archaeology_comments.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_no_archaeology_comments.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_no_backcompat.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_no_backcompat.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_no_fte_in_planning_docs.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_no_fte_in_planning_docs.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_no_review_comments.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_no_review_comments.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_permalinks_for_external_refs.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_permalinks_for_external_refs.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_positional_format.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_positional_format.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_review_only_no_edits.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_review_only_no_edits.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_sp1_vk_identity_needs_outer_prove.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_sp1_vk_identity_needs_outer_prove.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_trivial_commits_skip_clippy.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_trivial_commits_skip_clippy.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_user_posts_review_replies.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_user_posts_review_replies.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_yubikey_error_decoding.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_yubikey_error_decoding.md
$ curl -fsSL --create-dirs -o .claude/agents/feedback_yubikey_no_pipe_on_commit.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/feedback_yubikey_no_pipe_on_commit.md
$ curl -fsSL --create-dirs -o .claude/agents/project_db_schema_in_pr.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/project_db_schema_in_pr.md
$ curl -fsSL --create-dirs -o .claude/agents/project_hwm_readiness_rule.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/project_hwm_readiness_rule.md
$ curl -fsSL --create-dirs -o .claude/agents/project_prover_service_trust_model.md https://raw.githubusercontent.<redacted>-Users-xuliucheng-src-github-com-babylonlabs-io-vault-provers/project_prover_service_trust_model.md

This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 17.0k rigs:

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(**/.env)",
      "Read(~/.ssh/**)",
      "Bash(git push --force:*)",
      "Read(**/*.pem)",
      "Read(.env)",
      "Read(~/.aws/**)",
      "Read(**/*.key)",
      "Read(**/.env.*)",
      "Bash(git push --force*)",
      "Bash(rm -rf *)",
      "Bash(rm -rf:*)",
      "Bash(sudo *)",
      "Bash(sudo:*)",
      "Bash(rm -rf /)",
      "Bash(git push -f:*)",
      "Read(.env.*)",
      "Read(./secrets/**)",
      "Bash(git reset --hard*)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git push *)",
      "Bash(gh pr merge *)",
      "Bash(git commit:*)",
      "Bash(rm *)",
      "Bash(gh pr merge:*)",
      "Bash(npm publish:*)",
      "Bash(git reset --hard:*)",
      "Bash(git clean *)",
      "Bash(git rebase *)"
    ]
  }
}

Skills (10)

Subagents (72)

task-implementer
model: sonnet
Apply one authorized coherent source change.
lore—
plan—
research—
resign-pr—
review-plan—
shed—
task-workflowCoordinate substantial authorized implementation with a worker and independent review.
MEMORY—
MEMORY—
Prefer minimal, targeted instrumentation over comprehensive phase-by-phase coverWhen user asks to add timing or diagnostic logs, default to bumping existing log levels and 1-2 new lines at the prime suspect; do not propose phase-by-phase coverage with macros/helpers
MEMORY—
review-output-formatReviews must use the adversarial-review skill — labeled findings, evidence gate, verdict-first format
MEMORY—
pre-publish-challenge-gateClaim discipline for drafted artifacts — calibrate material claims at write time, independent adversarial challenge before publishing, confirm round after fixes
MEMORY—
MEMORY—
feedback_anchor_on_user_scratchanchor plans on the user's existing scratch/design notes; flag any deviation explicitly rather than silently redesigning
feedback_changelog_one_linevault-provers CHANGELOG entries must be one terse line; corrected twice on multi-line drafts
feedback_dotfiles_sync~/.dotfiles has no auto-sync — commit/push manually; Claude memory is backed up via claude/scripts/sync-memory.sh
feedback_global_todo_fileUser keeps a global personal TODO list at ~/.claude/TODO.md — read it on demand and append observed follow-ups
feedback_impl_plan_before_codingwrite an implementation plan before any code, even when told to "start" a task or spike
Iterative review inflation in plan docsWhen iterative Codex/reviewer cycles surface real findings, don't inline every mitigation into the main plan body — split into main plan + appendices instead
Local nightly rustfmt requires bypassing rust-toolchain.tomlcargo fmt always runs stable rustfmt locally because rust-toolchain.toml pins to 1.94 — must invoke rustfmt directly to match CI
feedback-new-worktree-per-fixAlways create a fresh git worktree at .claude/worktrees/<branch-name> before starting any fix branch — do not edit the main checkout
No archaeology comments in codeNever write code comments that explain what was previously there, what was removed, or how the current code differs from a prior version
No backward compatibility for migrationsWhen refactoring or removing fields/APIs, default to hard breaks; never propose deprecation periods, lenient parsing of removed fields, or transitional shims
No FTE/bandwidth in planning docsDon't include team bandwidth, FTE allocations, or headcount in audit/spec/planning docs intended for shared artifacts
No PR review comments without approvalNever post review comments on GitHub PRs unless the user explicitly approves
Use permalinks for external source referencesWhen citing external repos (e.g., SP1, helios, alloy) in doc comments, use a versioned GitHub permalink, not a bare `path/file.rs:line` reference
Positional {} in format strings is acceptableUser considers positional {} in format macros acceptable despite CLAUDE.md rule, especially for simple expressions like hex::encode
In iterative plan reviews, provide suggestions only — do not edit the planWhen running the iterative plan-review loop (review-plan skill or equivalent), surface findings and suggested wording but never apply edits to the plan file unless explicitly told to
SP1 vk-identity tests need outer prove, not executeverify_sp1_proof's vk-identity check fires at the recursion layer during outer prove; execute() cannot exercise it under any SP1_PROVER mode
Skip clippy for trivial changesFor trivial one-line changes (log level tweak, comment fix, rename), skip cargo clippy pre-commit and go straight to staging + signing + push
User posts review repliesDraft GitHub PR review-comment replies and show them to the user; do not post via gh api
YubiKey-SK signing error decodingincorrect passphrase" / "invalid format" errors on YubiKey-signed commits usually mean tap timed out, not PIN/key issue
Never pipe YubiKey-signed git commit outputYubiKey signing relies on SSH_ASKPASS surfacing a macOS dialog; piping the commit output (e.g., `| tail -8`) breaks the dialog
project_db_schema_in_prbtc-authz-db must ship a simple, human-readable schema description (field tables, not SQL DDL) in the PR as a deliberate anti-vaultd arch-design example
project_hwm_readiness_ruleHWM upgrade readiness = suffix chainwork after the governance tx ≥ W_max·NOTICE_BLOCKS; readiness+witness derivable from stored headers, drives btc-authz-db schema
project_prover_service_trust_modelprover-service trust model — trusted by vaultd, self-hosted localhost default, optional Babylon shared GPU prover behind permissioned perimeter

Similar rigs

copied ✓