microfolio: Instructions file for Claude Code

CLAUDE.md

microfolio CLAUDE.md is an instructions file for Claude Code from aker-dev/microfolio. It costs 6,458 tokens per session, scanned A, original, MIT.

A set of instructions for AI coding agents working on microfolio, a static portfolio generator built with SvelteKit, Svelte, and Tailwind CSS that uses Markdown files for content.

In plain words
What is it for?
It helps agents develop, test, build, and deploy the portfolio generator while preserving its commands, content format, and configuration.
Why use it?
It explains the project structure, commands, documentation sources, testing expectations, and stability rules for its public interface.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is aker-dev/microfolio's own configuration. It tells Claude Code how to work on microfolio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything microfolio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to aker-dev/microfolio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/aker-dev/microfolio/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/aker-dev/microfolio

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 microfolio CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aker-dev/microfolio/claude-md/github.svg)](https://agentmods.dev/instructions/aker-dev/microfolio/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/aker-dev/microfolio/claude-md"><img src="https://agentmods.dev/badge/instructions/aker-dev/microfolio/claude-md/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 microfolio CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aker-dev/microfolio/claude-md"><img src="https://agentmods.dev/badge/instructions/aker-dev/microfolio/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,458 This file is loaded in full into every session.
When invoked 6,458 The same file — it is already loaded in full.
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.06458 $0.06458
Opus 5.5 $0.02583 $0.02583
Sonnet 5.5 $0.01292 $0.01292
Haiku 4.5 $0.00646 $0.00646

Measured 5d ago against content hash 32de9b8eb226, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

microfolio CLAUDE.md 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 5d 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.

CLAUDE.md · 178 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

.mcp.json declares the official Svelte MCP server (@sveltejs/mcp): live documentation and a svelte-autofixer that validates Svelte source. Prefer it over recalling Svelte 5 semantics from memory. It replaced svelte-complete.txt, an 810 KB documentation dump that had been frozen since July 2025.

.claude/settings.json allowlists this project's own scripts so pnpm lint, pnpm build and friends run without a prompt.

Project Overview

microfolio is a static portfolio generator built with SvelteKit 2, Svelte 5, and Tailwind CSS 4. It uses a file-based CMS (Markdown + YAML frontmatter) for content. Developed by AKER.

The 1.0 stability promise (README › Stability) freezes until 2.0: the content layout and frontmatter keys, the keys of config.js (add-only), the commands, and the files update-microfolio never touches. A change to any of those is a major version, not a minor.

Development Commands

pnpm dev              # Development server (port 5555)
pnpm build            # Production build (via build.js → vite build)
pnpm deploy           # Build with NODE_ENV=production (sets /microfolio base path)
pnpm preview          # Preview production build (port 2001)
pnpm lint             # Prettier check + ESLint
pnpm format           # Prettier auto-fix
pnpm optimize-images  # Generate WebP thumbnails via sharp
pnpm clean-images     # Remove generated optimized images
pnpm test             # Unit tests (Vitest, single run)
pnpm test:watch       # Unit tests in watch mode
pnpm test:e2e         # End-to-end tests (Playwright, against pnpm dev)
pnpm test:smoke       # Smoke tests (Playwright, against build/ — run pnpm deploy first)
pnpm screenshots      # Regenerate doc/screenshots (needs a dev server; PORT=…)

Those two ports are a Daft Punk nod — Interstella 5555, and Discovery, the album it sets to pictures. strictPort is deliberately unset, so a busy port sends Vite to the next one and it prints where it actually landed. playwright.config.js and scripts/screenshots.js both default to 5555 because each means "wherever the dev server is": Playwright reuses a running one rather than starting its own, and the screenshot script requires one.

Read the full file on GitHub · 178 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. 5d ago Changed · +84 tokens per session 32de9b8eb226
  2. 1mo ago Changed · +1 lines · +374 tokens per session 43bbc4bf690d
  3. 1mo ago First seen · 177 lines · 6,000 tokens per session scan A ee80b100facf

Subscribe to this mod's changes

microfolio CLAUDE.md is an instructions file published in the GitHub repository aker-dev/microfolio (145 stars, last pushed 6d ago), licensed MIT. It adds 6,458 tokens to every session, about $0.0258 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-30.

Related

Other instructions, from other repositories