write-code-portfolio

write-code-portfolio is a skill for Claude Code from urmzd/dotfiles. It costs 148 tokens per session (788 once invoked), scanned A, original, Apache-2.0.

A personal development setup for managing language toolchains, command-line tools, shell configuration, dotfiles, and Neovim settings. It uses Nix Flakes for separate development environments and chezmoi for machine-specific configuration.

In plain words
What is it for?
Use it to add or remove development tools, edit Nix environments, update chezmoi installer scripts, or change shell and Neovim configuration.
Why use it?
It keeps project tools separate from the global environment and lets configuration vary between machines or personal and work setups.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to add or remove development tools, edit Nix environments, update chezmoi installer scripts, or change shell and Neovim configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/urmzd/dotfiles/write-code-portfolio
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 urmzd/dotfiles --skill write-code-portfolio
Clone the repo
git clone --depth 1 https://github.com/urmzd/dotfiles

Made for: Claude Code.

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 write-code-portfolio

README.md
[![agentmods](https://agentmods.dev/badge/skills/urmzd/dotfiles/write-code-portfolio/github.svg)](https://agentmods.dev/skills/urmzd/dotfiles/write-code-portfolio)
Your own site
<a href="https://agentmods.dev/skills/urmzd/dotfiles/write-code-portfolio"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/write-code-portfolio/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 write-code-portfolio

Your own site · 80×15
<a href="https://agentmods.dev/skills/urmzd/dotfiles/write-code-portfolio"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/write-code-portfolio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 788 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.00148 $0.00788
Opus 5.5 $0.00059 $0.00315
Sonnet 5.5 $0.00030 $0.00158
Haiku 4.5 $0.00015 $0.00079

Measured 3mo ago against content hash d6f451f1e0e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-code-portfolio 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 3mo 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.

dot_agents/skills/write-code-portfolio/SKILL.md · 62 lines

How it starts

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

Portfolio Dev Setup

Personal, opinionated tooling that backs the patterns in write-code. This is not portable. Other users on Bitwarden + asdf + bash will not want any of this.

Composable Toolsets (Nix Flakes)

13 reusable per-language shells combined via flake.nix outputs. Each shell pins a single toolchain (rust-toolchain, go, node, python with uv, etc.). Projects compose the shells they need; nothing pollutes the global env.

  • Each language shell exposes a devShell and a lib.tools set for downstream composition
  • Avoid nix-direnv here -- vanilla direnv + a use flake line keeps cold-start fast and predictable on macOS

Machine Polymorphism (chezmoi)

Dotfile templates branch on host attributes:

{{ if .is_macos -}}
# macOS-only block (Homebrew bundle, defaults write, ...)
{{ end -}}

{{ if and .is_personal (not .is_work) -}}
# personal-only block (1Password personal vault, side projects, ...)
{{ end -}}

Attributes come from .chezmoi.toml.tmpl (is_macos, is_linux, is_personal, is_work). Keep templates small and the booleans flat; deeply nested {{ if }} blocks are a smell.

Powerlevel10k

Zsh prompt with instant prompt enabled and cache invalidation tied to plugin dir mtime. Source of truth: dot_p10k.zsh in the chezmoi source. Avoid editing the rendered ~/.p10k.zsh directly -- it is overwritten on next chezmoi apply.

Neovim (HEAD)

Lua config under private_dot_config/nvim/. Highlights:

  • LSP set: ty, ts_ls, lua_ls, gopls, rust_analyzer, jsonls, yamlls, bashls, jdtls
  • Subprocess-safe: detects non-interactive sessions and disables clipboard provider (so nvim -c '...' +q in scripts doesn't hang on macOS pbcopy)
  • Plugin manager: lazy.nvim, pinned via lazy-lock.json
  • 24-hour compinit cache; auto fpath discovery picks up new completions on next shell start

Why split this out

The portable write-code skill answers "what should this codebase look like?" That question is the same for everyone in the org. This skill answers "how is my personal machine wired up?" -- a question only I should be making decisions for, so the router shouldn't pick it for general code-writing requests.

Read the full file on GitHub · 62 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. 3mo ago First seen · 62 lines · 148 tokens per session scan A d6f451f1e0e0

Subscribe to this mod's changes

write-code-portfolio is a skill published in the GitHub repository urmzd/dotfiles (6 stars, last pushed 4d ago), licensed Apache-2.0. It adds 148 tokens to every session and 788 once invoked, about $0.0006 per session on Opus 5.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-08-31.

Related

write-code-portfolio compared with skills from other repositories

write-code-portfolio next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-code-portfoliourmzd/dotfilesSkill64d agoApache-2.0A148Claude Code
metaceptionmagic3007/dotfilesSkill115d agoMITA332Claude Code
astropymagic3007/dotfilesSkill115d agoMITA56Claude Code, Codex
mcp-notion-usage-guidemagic3007/dotfilesSkill115d agoMITA174Claude Code, Codex
esmmagic3007/dotfilesSkill115d agoMITA96Claude Code, Codex
ralph-loopmagic3007/dotfilesSkill115d agoMITA63Claude Code, Codex
repo-industrializemagic3007/dotfilesSkill115d agoMITA169Claude Code, Codex