capture-project-dir-before-worktree
How to safely capture the real project root path before entering a worktree, so that files written at end-of-manufacture land in the permanent project…
Skill by lewibs
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/lewibs-capture-project-dir-before-worktree
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/capture-project-dir-before-worktree
What's inside
- Skill name
capture-project-dir-before-worktree- Description
- How to safely capture the real project root path before entering a worktree, so that files written at end-of-manufacture land in the permanent project directory rather than the (deleted) worktree.
- License
- unknown
- Instructions
- 37 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
The license isn't open source, so the instructions aren't shown here. Read SKILL.md on GitHub
More from lewibs/dark-factory
- 0.469score
agent-behavior-violation-detection
lewibs
Use this skill when building a post-manufacture auditor that scans agent execution logs and transcripts for pipeline instruction violations expressed in the…
SkillCFreshness: CClaude Code +9 - 0.469score
claude-md-for-cross-cutting-guidance
lewibs
Use this skill when a new pattern or convention needs to apply to all agents — write it once in CLAUDE.md rather than editing every agent file individually.
SkillCFreshness: CClaude Code +9 - 0.467score
bash-associative-array-pipe-delimited
lewibs
Use pipe-delimited strings in bash associative arrays to map a key to multiple values, then split with IFS='|' read -ra when consuming.
SkillCFreshness: CClaude Code +9 - 0.467score
agent-tool-json-nesting
lewibs
When a Claude Code PreToolUse hook intercepts an Agent tool call, the prompt and subagent_type live under .tool_input, not at the top level of the hook stdin…
SkillCFreshness: CClaude Code +9 - 0.467score
askuserquestion-depth-limit
lewibs
AskUserQuestion and PushNotification only reach the human when called from a depth-2 agent (direct child of the CLI); calls from depth-3+ sub-agents are…
SkillCFreshness: CClaude Code +9 - 0.467score
brain-hook-driven-state
lewibs
How to wire cross-agent shared state through Claude Code PreToolUse/PostToolUse hooks: the orchestrator creates brain.json, hooks inject it into sub-agent…
SkillCFreshness: CClaude Code +9 - 0.467score
branch-drift-guard
lewibs
After a worker agent returns in an orchestrator, verify the feature branch is ahead of main to detect cases where the worker committed to the wrong branch or…
SkillCFreshness: CClaude Code +9 - 0.467score
claude-code-hook-env-isolation
lewibs
Env vars set via `export` inside a Claude Code Bash tool call are invisible to PreToolUse/PostToolUse hook processes — use a pointer file at a fixed path as…
SkillCFreshness: CClaude Code +9 - 0.467score
claude-code-hook-stdout-reserved
lewibs
In Claude Code PreToolUse hooks, stdout is the override channel for the tool input JSON — all diagnostic logging must go to stderr, never stdout.
SkillCFreshness: CClaude Code +9 - 0.467score
converge-existing-resource-path
lewibs
When an agent detects that a long-lived resource (PR, branch, deployment) already exists, perform the side effects for that path (commit, push, record the…
SkillCFreshness: CClaude Code +9 - 0.467score
create-pr
lewibs
Opens a pull request on GitHub using a fix already applied to the working tree.
SkillCFreshness: CClaude Code +9 - 0.466score
systematic-debugging
lewibs
Run a mandatory debugging workflow for non-obvious bugs using the Lewibs bug template and Solving a Bug checklist, then save a deduplicated audit log in…
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 1
- Last commit (this folder)
- Apr 28, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- License unknown
- Repository
- github.com/lewibs/dark-factory
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from lewibs
- 0.469score
agent-behavior-violation-detection
lewibs
Use this skill when building a post-manufacture auditor that scans agent execution logs and transcripts for pipeline instruction violations expressed in the…
SkillCFreshness: CClaude Code +9 - 0.469score
claude-md-for-cross-cutting-guidance
lewibs
Use this skill when a new pattern or convention needs to apply to all agents — write it once in CLAUDE.md rather than editing every agent file individually.
SkillCFreshness: CClaude Code +9 - 0.467score
brain-hook-driven-state
lewibs
How to wire cross-agent shared state through Claude Code PreToolUse/PostToolUse hooks: the orchestrator creates brain.json, hooks inject it into sub-agent…
SkillCFreshness: CClaude Code +9 - 0.467score
bash-associative-array-pipe-delimited
lewibs
Use pipe-delimited strings in bash associative arrays to map a key to multiple values, then split with IFS='|' read -ra when consuming.
SkillCFreshness: CClaude Code +9 - 0.467score
askuserquestion-depth-limit
lewibs
AskUserQuestion and PushNotification only reach the human when called from a depth-2 agent (direct child of the CLI); calls from depth-3+ sub-agents are…
SkillCFreshness: CClaude Code +9 - 0.467score
agent-tool-json-nesting
lewibs
When a Claude Code PreToolUse hook intercepts an Agent tool call, the prompt and subagent_type live under .tool_input, not at the top level of the hook stdin…
SkillCFreshness: CClaude Code +9
Cite this page
capture-project-dir-before-worktree skill. Agent Mart. https://agentmart.dev/skills/lewibs-capture-project-dir-before-worktree (last updated 2026-10-24)