# Hs Mkt Content Index

> Rebuild the content index grouped by project, topic, and status

- Skill: `harpreetsingh/hs-mkt-content-index` (Agent Skill)
- Install (CLI): `npx skillmds@latest add harpreetsingh/hs-mkt-content-index`
- Raw SKILL.md: https://api.skillmd.com/api/skills/harpreetsingh/hs-mkt-content-index/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: harpreetsingh (https://skillmd.com/u/harpreetsingh)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/harpreetsingh/hs-mkt-content-index

---


# /content-index — Rebuild Content Index

Scan `~/content/` and rebuild `~/content/index.md` as a browsable index.

## Process

1. **Scan captures** in `~/content/captures/` (skip `done/` subdirectory)
2. **Scan drafts** in `~/content/drafts/`
3. **Read frontmatter** from each file for tags, project, type, status, date
4. **Write `~/content/index.md`** organized as:

   ```markdown
   # Content Index
   *Auto-generated by /content-index — do not edit manually*
   *Last updated: YYYY-MM-DD*

   ## Active Captures (N)
   ### By Project
   - **project-name** (N captures)
     - [title](path) — type, tags — date

   ### By Topic
   - **architecture** (N captures)
     - [title](path) — project — date

   ## Drafts (N)
   - [title](path) — status, tags — date

   ## Done (N captures → blogs)
   - [title](path) — drafted into [blog](draft-path) — date
   ```

5. **Report** — show counts: N active captures, N drafts, N done.

## Rules

- Overwrite the existing index completely — it's auto-generated.
- Use relative paths so the index works if the content dir moves.
- Sort by date descending within each group.

