Dev setup temp resource

From Takazudo/claude-resources · View interactive version

Dev setup temp resource is an AI agent skill from the GitHub repository Takazudo/claude-resources. Use the committed _temp-resource/<issue>-<topic>/ convention to hand prototypes, references or fixtures to a later session through git. Use for /big-plan to /x-wt-teams handoffs or web sessions without cclogs.

How to use this skill

Skill file

Dev Setup: Temp Resource

A repo-committed handoff channel for scratch resources that one session produces and a later

session consumes. Git is the channel — so it works where Dropbox/cclogs does not (most importantly

Claude Code web, which has no Dropbox).

The convention

whole point — the resources ride the branch/PR to whatever machine or web session picks the work up.

The number is the GitHub issue — the epic for /big-plan, the single issue for /x-as-pr.

branch. Harmless if left (tooling ignores the dir), but prefer clean.

When to use it — and when not

Use it only when delegating to a later session AND the resource is not already in the repo and is

too big/binary to express inline in the issue (a prototype, a design mockup + screenshots, test

fixtures, sample data).

Do not reflexively store everything. /protodev output is often discarded or never

acted on — keep that in cclogs. Promote a copy into _temp-resource/ only once you've decided a

downstream session concretely needs it. In-session work needs none of this; just use the file directly.

One-time repo setup

A stray prototype (.ts/.tsx/.md/.html) under _temp-resource/ must not trip CI's

format / lint / test gates. Most repo tooling is path-scoped (e.g. pnpm --filter ...) and never

sees a root dir — but the broad scanners (markdown formatters, repo-wide linters, root test configs)

will, so they need an explicit exclude. Run the helper:

bash "$HOME/.claude/skills/dev-setup-temp-resource/scripts/ensure-temp-resource.sh"

It creates _temp-resource/ + a README.md, verifies the dir is not gitignored, and auto-patches

the configs whose shape is known and safe to edit:

Then it reports the remaining lint / test / typecheck configs for you to finish by hand (their

shapes vary too much to patch blindly):

ignorePatterns; biome.json → files.ignore.

test.exclude; jest.config.* → testPathIgnorePatterns; playwright.config.* is usually

testDir-scoped (safe — just confirm testDir isn't the repo root).

the repo root (per-package tsconfigs that scope to their own src need nothing).

Edit the tool's own config array — never add a CLI --ignore/--exclude flag to the npm script.

For tools that auto-load a config (mdx-formatter's .mdx-formatter.json, etc.), a CLI flag replaces

the config's list instead of extending it, silently re-exposing everything else the config was

excluding (e.g. generated docs). The helper edits the config array for exactly this reason.

Commit this setup once (its own small PR, or fold it into the first delegating base branch). It is

permanent repo plumbing; the per-topic subdirs come and go on feature branches.

Store a resource (the delegating session)

  1. Pick the issue number + a short topic slug.
  2. mkdir -p _temp-resource/<issue>-<slug>/ and put the files there.
  3. In the issue body, reference them by this in-repo path — never a $DROPBOX_*/$HOME/cclogs/absolute

path (those don't exist on another machine or on web). A compact inline summary (e.g. ASCII of a

layout) alongside the path makes the issue self-contained even before the file is opened.

The base-branch delegation protocol — `/big-plan` → `/x-wt-teams`

By default /x-wt-teams creates the base branch and /big-plan creates issues only. When resources

must be delegated, /big-plan prepares the base branch instead, and /x-wt-teams reuses it:

  1. /big-plan (after the epic + sub-issues exist, so the epic number is known):

(base/<slug> → parent).

_temp-resource/<epic#>-<slug>/ path. This is the cross-session message.

  1. /x-wt-teams: when the epic says "use this PR as base", reuse that existing base branch —

do NOT create a new one. Topic branches fork from it, so every child inherits the resources, and each

sub-issue can point at _temp-resource/<epic#>-<slug>/ in the working tree.

For Claude Code web this is the only reliable handoff: the PR + committed dir ARE the shared state.

Consume (the later session / child agents)

The resources are already on the branch — read _temp-resource/<issue>-<topic>/ straight from the

working tree. The issue body points there. No download step, no Dropbox.

Cleanup

When the delegated work merges, remove _temp-resource/<issue>-<topic>/ so it doesn't land on the

default branch — fold this into the consuming workflow's cleanup/confirm step (or the docs step that

migrates anything durable into real docs). Leaving it is harmless but untidy.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.