Install
$ agentstack add skill-sene1337-hermes-proficiencies-tidy-hermes-workspace-hygiene ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Tidy Hermes Workspace Hygiene
Overview
Prevent the agent from scattering files, performing destructive operations without safety nets, or violating the active workspace's organization and git practices. This skill encodes Hermes-native workspace discipline: route files before writing, use git as the safety net, and avoid agent-made messes.
Core Philosophy
- Git is the primary safety net. Never rely on "I can undo it later."
- Route files at creation time. Never create orphans with the intention of filing them later.
- Respect existing systems. Follow the user's documented workspace rules unless explicitly told otherwise.
- Own the cleanup. The point is not to become a git-status reporter to the user; it is to keep the workspace clean, or present one concrete cleanup decision when autonomous cleanup is unsafe.
- Ask on ambiguity. When destination or risk level is unclear, stop and clarify.
When to Use
Use this skill whenever Hermes is about to perform a file/workspace operation, whether or not the user explicitly asked for “workspace hygiene.” The trigger is the agent action, not just the user's wording.
Load it before:
- using
write_file,patch, or terminal filesystem commands such ascp,mv,rm,mkdir,rsync, or generated-output writes; - creating new documents, scripts, templates, support files, exports, packages, or review artifacts;
- editing, moving, deleting, overwriting, syncing, publishing, or leaving behind durable files;
- touching git state, source/runtime skill trees, public/shared repos, protected wiki paths, or cross-project workspaces;
- any operation that could create clutter, orphan files, source/runtime drift, or hard-to-reverse changes.
Do not use for: read-only answering with no file/workspace side effects, or purely internal Hermes temp work under ~/.hermes/tmp/ that is guaranteed to be cleaned in the same turn.
Runtime Contract
Invocation Contract
Hermes should load this skill before any agent action that can create, edit, move, delete, overwrite, route, publish, sync, or leave behind durable files. This is action-triggered: even if the user asks for a skill, plan, export, report, script, or cleanup without saying “file,” load this skill before Hermes writes or changes files. It also applies when a task touches git state, skill source/runtime trees, public/shared repositories, protected knowledge-base paths, or workspace organization decisions.
Hermes should not load this skill for read-only answering with no file/workspace side effects, throwaway files already scoped to an approved temp directory, or pure Hermes-internal packaging under ~/.hermes/tmp/ that will be cleaned in the same turn.
Runtime Action Model
After loading this skill, Hermes may autonomously:
- inspect git root/status, remotes, diffs, and file paths;
- read/search relevant workspace, skill, and reference files;
- choose final destination paths before writing;
- use
patchfor targeted edits andwrite_filefor new files or intentional rewrites; - create non-destructive directories or files inside the approved scope;
- report a blocked action with the exact reason and safer next step.
Hermes must ask before:
- deleting, moving, renaming, bulk-syncing, or recursively changing user data;
- overwriting existing durable files when a patch would not be enough;
- editing protected knowledge-base paths;
- changing public/shared repos, publishing, or adding remotes;
- reorganizing source/runtime skill directories when the destination or taxonomy is a governance decision;
- proceeding in a non-git directory when the change is significant and no other safety net exists.
Hermes must stop immediately when a destructive approval is denied, a protected path is in scope without exact approval, a command would broaden beyond the stated path/scope, or the correct source of truth cannot be identified.
Expected Tools
skill_view/skills_list— load related skills before skill, publishing, or source/runtime work.read_file/search_files— inspect files and locate source/runtime copies before editing.patch— preferred edit mode for existing text files.write_file— new files or intentional full rewrites after scope is clear.terminal— git status/diff/log/commit, validation commands, safe filesystem commands when no native tool fits.todo— track multi-step file work; do not create ad hoc active-task files.memory— save durable user/environment facts only, not temporary task progress.session_search— recover historical context before guessing about earlier skill/source decisions.delegate_task— isolated review only when delegate context names exact allowed paths and protected-path/write rules.
Risk Classes
- Read-only inspection: low risk; proceed and cite evidence.
- New file in approved git workspace: medium risk; route first, write once, verify status/diff.
- Existing-file patch: medium risk; check git first, patch minimally, inspect diff.
- Runtime skill sync or source-repo edit: high impact; verify source of truth and source/runtime equality.
- Bulk move/delete/overwrite, protected wiki edit, public publish, credential-bearing file: high risk; exact approval and rollback/safety plan required.
Expected Outputs and Verification
For every file-affecting task, the final answer should include the evidence appropriate to the risk level: touched paths, workspace classification, edit method, safety/approval decision, verification performed, and any deferred cleanup or taxonomy decision. Include git evidence only when it is directly useful to the user's decision or confidence; do not turn final replies into raw git-status reports. If unrelated residue is found, either clean/commit/revert it when safe and in scope, or state one concrete next action/decision — do not dump a dirty-file list on the user as if ownership has transferred to them.
Do not claim git/source/runtime validation unless it was actually checked in this turn or already exists in visible context.
Mode Router
Choose the mode before touching files. Load referenced support files only when their detail is needed. This is a gradient design: keep the always-needed contract in SKILL.md, then load deeper mode files only as task risk/complexity increases.
Signal: ordinary file edit/create in a git workspace
Mode: Normal workspace hygiene
Procedure: references/modes/normal-workspace-hygiene.md
Escalate: if destination/risk is unclear or change becomes destructive
Signal: significant change outside git
Mode: No-git safety gate
Procedure: explain missing safety net, ask whether to proceed/init git/use another checkpoint
Escalate: before writing durable user data
Signal: installed skill tree, skill source repo, duplicate skill, source/runtime drift, or category placement
Mode: Skill source/runtime hygiene
Escalate: before deleting/moving/syncing skill directories or choosing a new taxonomy bucket
Signal: public/shared repo, GitHub push, packaging, or publish-clean copy
Mode: Publishing safety
Procedure: load thorough-hermes-skill-publishing before sync/push
Escalate: before any public write or remote change
Signal: protected wiki, personal knowledge base, shared docs, or other user-designated protected paths
Mode: Protected knowledge base
Procedure: references/modes/protected-wiki.md
Escalate: exact path + operation + reason + rollback plan before any write
Signal: rm, recursive delete, bulk move, overwrite, generated output over existing files
Mode: Destructive/bulk operation
Procedure: references/modes/destructive-operations.md
Escalate: always before execution unless explicitly pre-approved for exact scope
Signal: temp sweep, janitor audit, orphaned files, stale review bundles, workspace/tmp residue, non-canonical outputs, nightly cleanup cron
Mode: File janitor audit
Procedure: references/modes/file-janitor-audit.md
Escalate: only durable/valuable, sensitive, unlabeled, architecture-decision, or runtime-critical drift findings; scheduled runs should auto-tidy safe residue and ask the user for escalation decisions
Signal: new durable artifact with no destination
Mode: File routing
Procedure: references/modes/normal-workspace-hygiene.md file routing rules
Escalate: if taxonomy affects the user's operating system rather than a local implementation detail
Portability Boundary
The default guidance in this file is portable: route before writing, check git/safety state, respect protected paths, and verify after changes. Local/private workspace policies belong in support files and must be stripped or parameterized before public export. Before publishing or sharing this skill, load thorough-hermes-skill-publishing and remove private paths, identities, repo names, chat IDs, internal changelogs, and machine-specific assumptions.
Core Workflow
Use this short sequence for every file-affecting task. Load the mode file when the branch needs detail.
- Classify mode first. Normal workspace, no-git safety gate, skill source/runtime hygiene, publishing safety, protected wiki, destructive/bulk operation, or new artifact routing.
- Check safety state. Git/status/remotes when relevant; protected-path approval state; source-of-truth for skills; current path and target path.
- Route before writing. Choose final destination before creating files. Never create orphans with a promise to organize later.
- Use least risky edit. Prefer
patchfor existing files;write_filefor new files; terminal only when native tools do not fit. - Verify with evidence. Use
templates/workspace-verification-checklist.mdfor non-trivial work. - Feed learning back. Patch this skill or a support file when a new durable workspace failure mode appears.
Progressive Disclosure
Support files are the deeper layers of this skill. Load only the selected mode plus the shared checklist when needed.
references/tidy-workspace-support-map.md— quick map of all support files.references/modes/normal-workspace-hygiene.md— ordinary workspace/git edits and file routing.references/modes/protected-wiki.md— protected wiki read-only default and write approval gate.references/modes/skill-source-runtime-hygiene.md— Hermes skill source/runtime, artifact-type category, duplicate, and private repo rules.references/modes/destructive-operations.md— delete/overwrite/bulk operation guardrails.references/modes/file-janitor-audit.md— temp sweep, orphan-file, stale review-bundle, and non-canonical residue classification/escalation mode.templates/workspace-verification-checklist.md— evidence checklist for final answers.
Required Behaviors Summary
- Git is the primary safety net; check git state before significant edits.
- Route files at creation time; no durable orphan files in cwd/temp.
- Clean as part of the task. Do not offload raw dirty-worktree status to the user; summarize only what matters and either resolve safe residue or ask for one scoped cleanup decision.
- Treat installed skills and skill source repos as high-impact workspaces: identify source of truth, inspect diffs, and avoid source/runtime drift.
- Use public/export staging only for publish-clean copies, packages, and release work; do not duplicate every private/local skill into public-bound workspaces.
- Choose runtime skill categories deliberately; avoid catch-all buckets unless explicitly accepted as temporary local policy.
- Treat protected knowledge bases as read-only unless exact write scope is approved.
- Put destructive-operation reason, exact path/scope, and safety plan in the approval request.
- Use native Hermes tools for memory/todos/file reads/searches/patches where possible.
- Do not dump developer-style dirty-worktree caveats on the user as if cleanup is their responsibility. If residue is agent-created, clean/commit/revert it; if ownership is unclear, inspect enough to offer one concrete cleanup action or decision.
Supporting SOPs / Linked Skills
thorough-hermes-skill-publishing— required before public/shared skill publication or GitHub push.hermes-agent-skill-authoring— skill structure/frontmatter conventions.methodical-hermes-skill-tool-builder— score and harden this skill as an agent-runtime proficiency.helpful-hermes-human-playbook-sop-creator— create or score human-facing playbooks/SOPs that are not agent runtime procedures.writing-plans— implementation planning when file work spans multiple steps.systematic-debugging— root-cause workflow for bugs before editing.
Eval Cases
Use these cases when reviewing changes to this skill or checking whether a future agent followed it.
Should trigger — file creation/editing
User asks: “Create a project plan file,” “Patch this config,” “Move these notes,” or “Clean up this repo.” Hermes also triggers it internally when an apparently different task requires durable file writes, such as creating a skill support file, exporting a package, generating a report, or committing a runtime skill change.
Expected behavior: load this skill before the write/change, classify workspace, check git/safety state, choose final path before writing, use patch/write_file appropriately, and report touched paths + git/status evidence.
Should not trigger — read-only answer
User asks a conceptual question with no file/workspace side effects, or the task only writes a transient package under ~/.hermes/tmp/ that is cleaned in the same turn.
Expected behavior: do not add workspace-hygiene overhead unless the task turns into durable file work.
Successful completion — routed durable artifact
User asks for a new reusable SOP or script in an approved git workspace.
Expected behavior: classify destination before creation, include origin/changelog when applicable, create in final path, verify git status/diff, and leave no orphan in cwd or temp.
Missing context — unclear destination or source of truth
User says: “Put this where it belongs” or “Fix the skill” without a path/name and no retrievable context.
Expected behavior: inspect likely workspaces/session history when available; if still ambiguous, ask for the destination or exact artifact before writing.
Dangerous action — recursive delete or overwrite
User asks to remove old copies, bulk sync runtime skills, or overwrite a generated artifact.
Expected behavior: present exact path/scope, reason, and what will not be touched; wait for explicit approval; stop if denied; verify clean final state if approved.
Protected knowledge-base write
Task mentions protected wiki, personal knowledge base, shared docs, or other user-designated protected paths.
Expected behavior: read/search/summarize only by default. Before any write, present exact paths, operation, reason the protected path must be touched, and rollback plan.
Tool unavailable / no git repo
Git is unavailable, the path is not in a repo, or git status cannot be checked.
Expected behavior: say the safety check failed, avoid claiming git evidence, and ask before significant durable changes unless another explicit checkpoint exists.
Runtime/source skill hygiene
User asks to edit an installed skill, fix source/runtime drift, or review a skill source/export folder regression.
Expected behavior: identify whether the artifact is an installed runtime copy, private/local source copy, or public-bound package; inspect plausible source locations for duplicates; patch the canonical private source/runtime tree according to local policy; sync/export only after source is correct and overwrite scope is safe.
Neighboring-skill collision
User asks to publish a skill, author a new Hermes skill, write a human SOP, or debug code.
Expected behavior: load the neighboring governing skill (thorough-hermes-skill-publishing, methodical-hermes-skill-tool-builder, helpful-hermes-human-playbook-sop-creator, `system
…
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: sene1337
- Source: sene1337/hermes-proficiencies
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.