opt-in-workspace-writes

opt-in-workspace-writes is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 19 tokens per session (552 once invoked), scanned A, original, MIT.

A workspace-safety add-on for tools that create files or folders automatically. It requires explicit consent, shows what will be created, and offers an undo or removal option.

In plain words
What is it for?
Use it when building extensions or tools that write to a workspace, especially when creating configuration files, project scaffolds, or editor settings.
Why use it?
It prevents unexpected configuration files, editor folders, or scaffolded structures from appearing in a project and being committed accidentally. Developers can review the proposed changes before they happen.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building extensions or tools that write to a workspace, especially when creating configuration files, project scaffolds, or editor settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/opt-in-workspace-writes
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fabioc-aloha/Alex_Skill_Mall --skill opt-in-workspace-writes
Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for opt-in-workspace-writes

README.md
[![agentmods](https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/opt-in-workspace-writes/github.svg)](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/opt-in-workspace-writes)
Your own site
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/opt-in-workspace-writes"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/opt-in-workspace-writes/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for opt-in-workspace-writes

Your own site · 80×15
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/opt-in-workspace-writes"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/opt-in-workspace-writes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 552 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00552
Opus 5 $0.00010 $0.00276
Sonnet 5 $0.00004 $0.00110
Haiku 4.5 $0.00002 $0.00055

Measured 7d ago against content hash 7bb19c868ad0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

opt-in-workspace-writes scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/architecture-patterns/opt-in-workspace-writes/skills/opt-in-workspace-writes/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Opt-In for Workspace Writes

The Problem

Extensions/tools that auto-write to user workspaces without consent:

  • Create .vscode/ folders unexpectedly
  • Add config files that get committed accidentally
  • Scaffold structures the user didn't want
  • Violate the principle of least surprise

The Solution

Get explicit consent before any workspace mutation.

1. Ask First

const choice = await vscode.window.showInformationMessage(
  'Initialize Alex configuration in this workspace?',
  { modal: true },
  'Yes, create .github/',
  'No, skip'
);

if (choice !== 'Yes, create .github/') {
  return; // User declined, do nothing
}

2. Show What Will Be Created

const files = [
  '.github/copilot-instructions.md',
  '.github/config/settings.json'
];

const choice = await vscode.window.showInformationMessage(
  `This will create ${files.length} files:\n${files.join('\n')}`,
  { modal: true, detail: files.join('\n') },
  'Create Files',
  'Cancel'
);

3. Provide Undo/Remove

// After creating files
vscode.window.showInformationMessage(
  'Configuration created.',
  'Undo'
).then(selection => {
  if (selection === 'Undo') {
    // Delete the created files
    files.forEach(f => fs.unlinkSync(path.join(workspaceRoot, f)));
  }
});

Never Auto-Write These

Path Why It's Dangerous
.vscode/ Shared via git, affects all developers
.github/ Shared via git, affects CI/CD
package.json Changes dependencies/scripts
.gitignore Affects what's tracked
Root config files .eslintrc, tsconfig.json, etc.

Acceptable Auto-Behavior

  • Reading files (no consent needed)
  • Writing to temp directories
  • Writing to user-global config (already your data)
  • Writing to extension storage area

Verification

  1. Fresh install → no files created until user opts in
  2. User can decline and extension still works
  3. Created files are clearly attributed to the extension

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 100 lines · 19 tokens per session scan A 7bb19c868ad0

Subscribe to this mod's changes

opt-in-workspace-writes is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 552 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

apply-trust-building

Use when a manager is new to a team, has experienced a trust breach, or wants to deliberately strengthen the trust foundation of their management relationships — because trust determines whether employees share real problems, follow direction with confidence, and engage fully.

jeffreytse/grimoire-core · 52 tokens

design-team-meeting-structure

Use when a team's meetings feel like the wrong type of conversation for the decisions being made, when meetings are too frequent or too infrequent, or when team members feel their time is wasted — to design the right meeting types, cadences, and facilitation practices for how the team actually works.

jeffreytse/grimoire-core · 66 tokens

prevent-employee-burnout

Use when a manager wants to reduce the risk of burnout on their team, or when they observe signs that a direct report may be approaching burnout — to identify contributing factors and intervene before the employee becomes disengaged, impaired, or leaves.

jeffreytse/grimoire-core · 54 tokens

run-underperformance-conversation

Use when a manager first observes that a direct report's performance is declining or falling below expectations — to have an early, direct, non-punitive conversation that names the gap and opens a path to correction before the situation requires formal process.

jeffreytse/grimoire-core · 54 tokens

apply-distributed-team-practices

Use when managing a team where members work in different locations, time zones, or on hybrid schedules — to adapt management practices so remote members have equal access to information, relationships, and advancement opportunities as in-office members.

jeffreytse/grimoire-core · 51 tokens

give-employee-recognition

Use when a manager wants to acknowledge a direct report's specific contribution, achievement, or behavior in a way that reinforces it and builds engagement — separate from compensation and formal performance reviews.

jeffreytse/grimoire-core · 42 tokens