worktree-safety
Use when starting a new feature task, before making experimental changes, or when user says 'try this', 'experiment with', 'test out'. Ensures work happens on a branch, not directly on main.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 13
- Forks
- 2
01 前言 Front Matter
- name
- worktree-safety
- description
- Use when starting a new feature task, before making experimental changes, or when user says 'try this', 'experiment with', 'test out'. Ensures work happens on a branch, not directly on main.
03 SKILL.md 正文
Worktree Safety Skill
Experimental or risky work should never happen directly on main. This skill ensures a branch exists before any code changes are made.
When to use this skill
- Starting a new feature or task that will take more than one commit
- User says "try this", "experiment", "test out an idea"
- About to make changes that are hard to reverse
- Working on something that might break existing tests
Do NOT use for: reading files, running read-only commands, answering questions.
Workflow
Step 1 — Check current branch
git branch --show-current
git status --short
If already on a feature branch (not main or master): report branch name and skip to Step 3.
If on main or master: proceed to Step 2.
Step 2 — Create branch
Ask the user for a branch name OR suggest one based on the task:
git checkout -b task/<suggested-name>
Naming convention: task/<short-slug> — e.g., task/fix-scope-guard, task/add-plan-skill.
Verify:
git branch --show-current
Step 3 — Baseline test
bash core/tests/hooks/run-hook-tests.sh 2>&1 | tail -3
Report:
- If tests pass: "Baseline: N tests passing. Safe to proceed."
- If tests fail: "Baseline failing before changes — investigate first. List failures."
Do not proceed with changes if baseline is failing. Ask user whether to continue.
Step 4 — Confirm ready
Report:
Branch: <branch-name>
Baseline: [N tests passing | FAILING — list]
Safe to proceed: [YES | NO]
Constraints
- Never create a branch named
main,master,develop, orrelease/*. - Never skip the baseline test — you need to know what was already broken.
- If the repo has no test suite, report that explicitly and proceed.
- If
git worktreeis available and the user wants isolation, suggest it:git worktree add .worktrees/<branch-name> -b <branch-name>
04 同仓库更多 Skills
openai--sentry--sentry
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.
ito-basket-compare
Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.
implementing-network-traffic-baselining
Build network traffic baselines from NetFlow/IPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly/daily traffic pattern profiling
detecting-evasion-techniques-in-endpoint-logs
Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.
implementing-microsegmentation-with-guardicore
Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.
ramdisk-tmpfs-patterns
暂无简介