Mine stories

From tmargolis/career-navigator · View interactive version

Mine stories is an AI agent skill from the GitHub repository tmargolis/career-navigator. Builds and refreshes CareerNavigator/StoryCorpus.json by extracting interview story candidates from raw sources (journals, PKM notes, debriefs, resumes, and related documents). Runs as a one-time/offline preprocessing pass and as an incremental refresh when new source files are detected in {user_dir

How to use this skill

Skill file

Create and maintain a persistent interview story corpus so downstream interview skills never need to read full raw journals repeatedly.

Workflow

1. Resolve `{user_dir}` and required paths

Use:

If StoryCorpus.json is missing, create it using the schema in step 5.

2. Discover source candidates

Scan {user_dir} recursively for likely story-bearing files, prioritizing:

Exclude:

3. Detect incremental work vs full build

If StoryCorpus.json already exists:

If no prior corpus metadata exists, run full build once.

4. Extract story candidates (Layer 1)

For each new/changed source:

  1. Chunk by natural entry boundary (date, heading, section, paragraph blocks).
  2. Run a cheap extraction pass with this intent:

> "Extract any anecdote, decision, challenge, outcome, or project detail from this entry. Output structured JSON."

  1. Keep extracted candidates, not raw source chunks.

Each candidate should include:

5. Write / merge `StoryCorpus.json` (Layer 2)

Use this top-level shape:

{
  "meta": {
    "created": "YYYY-MM-DD",
    "updated": "YYYY-MM-DD",
    "version": "1.0",
    "description": "Interview story corpus extracted from user-owned sources for prep and mock interview retrieval."
  },
  "stories": [
    {
      "story_id": "story-uuid",
      "source": "journal | pkm | debrief | resume | other",
      "source_path": "relative/path/to/file",
      "source_entry_ref": "date heading or chunk id",
      "date": "YYYY-MM-DD",
      "raw_summary": "Concise evidence summary from extraction.",
      "themes": ["technical_leadership", "crisis_management"],
      "competencies": ["problem_solving", "ownership", "cross_functional"],
      "result_signal": true,
      "ownership_signal": true,
      "star_ready": false,
      "star": {
        "situation": "",
        "task": "",
        "action": "",
        "result": ""
      },
      "quality": {
        "clarity": "low | medium | high",
        "specificity": "low | medium | high",
        "credibility": "low | medium | high"
      },
      "embedding": [],
      "score_hint": 0.0,
      "last_refreshed": "YYYY-MM-DD"
    }
  ],
  "source_index": [
    {
      "path": "relative/path",
      "mtime": "ISO-8601",
      "status": "processed | skipped",
      "last_processed": "ISO-8601"
    }
  ]
}

Merge behavior:

6. Compression and deduplication

After merge:

7. Output + next action

Report:

When this runs during launch/setup, suggest running story-retrieval inside prep workflows rather than re-mining.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.