story-import

story-import is a command for Claude Code from kirilxd/swe-interview-coach. It costs 35 tokens per session (1,614 once invoked), scanned A, original, MIT.

A one-time command for converting a legacy STAR-stories Markdown file into one or more standard story files. STAR is a format for describing a Situation, Task, Action, and Result in an interview story.

In plain words
What is it for?
Use it to select a legacy Markdown file, parse its title and story sections, and create canonical files in behavioral/stories/.
Why use it?
It moves older interview notes into the project’s current story format, so they can be used with the canonical story bank. It is intended for migration, not recurring preparation work.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the swe-interview-coach plugin — 3 skills, 17 commands, 2 agents shipped together

Good fit Use it to select a legacy Markdown file, parse its title and story sections, and create canonical files in behavioral/stories/.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kirilxd/swe-interview-coach/story-import
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.

Clone the repo
git clone --depth 1 https://github.com/kirilxd/swe-interview-coach

Made for: Claude Code.

Or install swe-interview-coach, the plugin that ships this one along with the rest of its 3 skills, 17 commands, 2 agents.

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 story-import

README.md
[![agentmods](https://agentmods.dev/badge/commands/kirilxd/swe-interview-coach/story-import/github.svg)](https://agentmods.dev/commands/kirilxd/swe-interview-coach/story-import)
Your own site
<a href="https://agentmods.dev/commands/kirilxd/swe-interview-coach/story-import"><img src="https://agentmods.dev/badge/commands/kirilxd/swe-interview-coach/story-import/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 story-import

Your own site · 80×15
<a href="https://agentmods.dev/commands/kirilxd/swe-interview-coach/story-import"><img src="https://agentmods.dev/badge/commands/kirilxd/swe-interview-coach/story-import.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,614 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.00035 $0.01614
Opus 5 $0.00017 $0.00807
Sonnet 5 $0.00007 $0.00323
Haiku 4.5 $0.00003 $0.00161

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

Security

Grade A, and why

story-import 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 10d 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.

commands/story-import.md · 122 lines

How it starts

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

You are running /story-import. This is a one-shot migration tool that converts a legacy STAR-stories markdown file into the canonical schema.

The user's working directory is $CLAUDE_PROJECT_DIR. Paths in the command instructions below are relative to it unless prefixed with ~/ or /.

Step 1 — Resolve source file

If the user supplied an argument ($ARGUMENTS), treat it as the source path. Resolve ~/ if present.

If no argument, ask the user for the source file path. Suggest scanning $CLAUDE_PROJECT_DIR for *-star-stories.md and listing matches; let user pick.

If the resolved path doesn't exist or isn't readable: report the error and stop.

Step 2 — Read the source

Use the Read tool on the resolved path. Limit to the file's full length (no offset).

Step 3 — Parse the source

Identify these sections:

  • Title: the H1 heading. Use this as the canonical title; slugify to kebab-case for the canonical id (e.g., "Acme UI Components Library — Netflix JSF" → strip company-specific suffixes if obvious, then slugify → acme-ui-library).
  • Core Facts: any ## Core Facts section (or close variant like "Core Facts (memorize these...)").
  • Key Metrics: any ## Key Metrics section. Extract bullet items into a flat list for frontmatter metrics:. If this section is absent, emit metrics: [] and continue; do NOT fall back to Step 6.
  • Approaches: every ## APPROACH X: <Theme> heading. Slugify <Theme> to derive an approach-slug (e.g., "The Platform Builder" → platform-builder).
    • Slugification rules (apply to both approach-slug and theme-slug for determinism on re-runs):
      1. Lowercase.
      2. Strip leading articles: "the", "a", "an".
      3. Replace whitespace and punctuation (em-dashes, slashes, commas, etc.) with single hyphens.
      4. Collapse consecutive hyphens.
      5. Trim hyphens from edges.
  • Variants: every ### Q: <question> heading under an approach. For each:
    • Slugify the question's main theme (the noun-phrase, not the full question) to derive a theme-slug (apply the slugification rules above).
    • Variant id = <approach-slug>-<theme-slug> (e.g., platform-driving-adoption).
    • Capture the bold-key blocks: **Situation:**, **Task:**, **Action:**, **Result:**. Preserve their multi-paragraph content verbatim. If any of the four STAR blocks is absent for a variant, write the field with the value (not captured — fill in manually) and include the variant id + missing field in the Step 7 summary's "themes to refine" or a new "gaps to fill" section.

Read the full file on GitHub · 122 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. 10d ago First seen · 122 lines · 35 tokens per session scan A eec234272a96

Subscribe to this mod's changes

story-import is a command published in the GitHub repository kirilxd/swe-interview-coach (80 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 1,614 once invoked, about $0.0002 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-08-30.