Hs Mkt Content Index

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

harpreetsingh Updated

File contents

/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:

    # 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.

harpreetsingh/harpreet-agent-flywheel-skills/tree/main/skills/hs-mkt-content-index commit e8c8744d3a

Frequently asked questions

npx skillmds@latest add harpreetsingh/hs-mkt-content-index