Skip to content
Agentmart
Submit a tool

workdir

声明当前 channel 正在使用的工作目录(可多个),显示在右侧 Workspace 卡并在压缩后可查回。多文件任务时用 set_workdirs 钉下工作目录,避免文件散落 /tmp 或每次重说。仅记录+展示,不改进程 cwd。

Skill by maxesisn

IndexedMIT
Write a review

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/maxesisn-workdir

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.

We use your email only for this newsletter. Privacy

About

声明当前 channel 正在使用的工作目录(可多个),显示在右侧 Workspace 卡并在压缩后可查回。多文件任务时用 set_workdirs 钉下工作目录,避免文件散落 /tmp 或每次重说。仅记录+展示,不改进程 cwd。

No 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
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/workdir

What's inside

Skill name
workdir
Description
声明当前 channel 正在使用的工作目录(可多个),显示在右侧 Workspace 卡并在压缩后可查回。多文件任务时用 set_workdirs 钉下工作目录,避免文件散落 /tmp 或每次重说。仅记录+展示,不改进程 cwd。
License
MIT
Instructions
27 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • tools.ts

SKILL.md (first lines)

# Workdir

Channel-scoped **advisory** working directories. When a task involves creating or
editing multiple files, declare the directory (or directories) you're working in with
`set_workdirs`, so:

- it shows in the channel's right-rail **Workspace** card (you + Max both see where files go);
- it survives compaction / rollover — after a compact you can `get_workdirs` to recover it;
- files stay in a deliberate place instead of scattering to `/tmp` or being re-specified each time.

This is **advisory only**: MaxClaw records and displays the dirs, it does NOT change the
process `cwd`. You still operate by absolute path — the workdir is a declared convention,
not a chroot.

## Tools

- `set_workdirs(workdirs: string[])` — replace the whole list (send the full desired set;
  `[]` clears). To add/remove one, read the current list first, then send the new full list.
- `get_workdirs()` — read the current list (use before editing, or to recover after a compact).

## When to use

Reach for it when a channel's task has a natural home directory — testing a skill,
scaffolding a project, iterating on a repo. Skip it for one-off / no-file tasks
(life-ops channels don't need a workdir; the card just won't appear).

From maxesisn/maxclaw-oss, MIT.

More from maxesisn/maxclaw-oss

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 9, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from maxesisn

Cite this page

workdir skill. Agent Mart. https://agentmart.dev/skills/maxesisn-workdir (last updated 2026-10-24)