Softedge Docs
v1.13.0 Index

Claude Commands

Custom Claude Code slash commands live in .claude/commands/ (one .md file per command) and are shared through git. They are prompts run by Claude Code, not build scripts.

/question <text>

Logs an open client question into doc/questions-client.md (created on first use) as an unchecked checklist item, so it isn't lost during the session.

/snapshot <page|partial>

Freezes the current state of a page or partial as a numbered variant in src/_variants/. Pages are also linked in the index.html hub; partials are kept as a preserved source copy under src/_variants/partials/. Element/component targets are planned for v2.

/clean [path]

Reports dead code (unused partials, JS, likely-unused CSS), commented-out blocks, verbose comments and duplicate attributes on a tag, then cleans up after approval. It never deletes SCSS on suspicion alone.

/session start | note <text> | end

The session workflow (see below). start resumes context, note jots a durable note, end writes the session log.

Session workflow

/clear wipes Claude's memory — only what is on disk (git and files) survives. Because tasks between clears are often not committed (commits group larger chunks of work), the durable per-task record is /session note, not git history.

start · note · end
/session start

On a session start or a handoff: reads the session index, the latest session file, open client questions and any in-progress draft, then summarizes where things stand.

/session note <text>

Records what was done / decided / left open for the sub-task you just finished, before you /clear. Accumulates in doc/sessions/_draft.md (committed, so it survives a clear and travels on handoff).

/session end

Closes the session: gathers the draft and git changes, writes the detailed doc/sessions/AAMMJJ-…md plus the index line, and clears the draft.