inventory-content

$npx mdskill add dandye/ai-runbooks/inventory-content

Catalogs content assets with metadata and format analysis.

  • Generates comprehensive inventories for content governance.
  • Depends on file system access and metadata extraction tools.
  • Prioritizes assets by type, date, and embedded characteristics.
  • Delivers structured reports in JSON, CSV, or markdown formats.

SKILL.md

.github/skills/inventory-contentView on GitHub ↗
---
name: inventory-content
description: Systematic cataloging of information assets. Creates comprehensive inventories of all content with metadata and characteristics.
required_roles:
  scribe: roles/scribe.viewer
personas: [information-architect, content-manager, librarian]
---

# Content Inventory Skill

Create a systematic catalog of information assets within a specified path. This skill builds a comprehensive inventory including metadata, file characteristics, and format analysis to support content governance and strategic planning.

## Inputs

- `PATH` - The directory or file path to inventory (e.g., "/documentation")
- `OUTPUT_FORMAT` - (Optional) The output format for the inventory, e.g., "csv", "json", "markdown" (default: "json")
- `METADATA_EXTRACTION` - (Optional) Boolean, whether to extract deep metadata (author, date, tags) (default: true)
- `FORMAT_ANALYSIS` - (Optional) Boolean, whether to analyze file formats and types (default: true)

## Workflow

### Step 1: Asset Discovery

Recursively scan the `PATH` to identify all files and assets.
- Record file paths, names, and sizes.
- Identify file types (Markdown, HTML, PDF, Image, etc.).

### Step 2: Metadata Extraction

If `METADATA_EXTRACTION` is true, extract metadata from each asset:
- **System Metadata**: Creation date, modification date, owner.
- **Embedded Metadata**: Frontmatter (YAML), title headers, tags, categories.
- **Content Metrics**: Word count, reading time estimation.

### Step 3: Format & Structure Analysis

If `FORMAT_ANALYSIS` is true, analyze the structure:
- **Template Usage**: Identify if standard templates are used.
- **Hierarchy Depth**: Depth in the directory structure.
- **Resource Dependencies**: Images or other assets linked.

### Step 4: Inventory Report Generation

Compile the data into a structured inventory format (CSV, JSON, or Markdown Table) as specified by `OUTPUT_FORMAT`.

## Required Outputs

A `CONTENT_INVENTORY_REPORT` in the specified `OUTPUT_FORMAT` containing:
- **Asset List**: Full list of discovered assets.
- **Metadata Table**: Columns for Title, URL/Path, Author, Last Modified, Type, Tags.
- **Summary Statistics**: Total count by type, average age, volume by category.

## Quick Reference

- **Purpose**: Establish a baseline understanding of content assets for governance.
- **Use Case**: Migration planning, audit preparation, consolidation projects.

More from dandye/ai-runbooks

SkillDescription
analyze-content-gapsIdentify content gaps and organizational opportunities. Analyzes missing content areas, redundancies, and consolidation opportunities.
audit-contentComprehensive content quality and maintenance assessment. Evaluates documentation quality, relevance, maintenance needs, and provides actionable recommendations.
check-duplicates"Check for duplicate or similar cases. Use before deep analysis to avoid investigating the same incident twice. Takes a CASE_ID and returns list of similar cases."
close-case-artifact"Close a case or alert with proper reason and documentation. Use when triage determines an alert is FP/BTP or investigation is complete. Requires artifact ID, type, closure reason, and root cause."
cluster-documentsAutomated content similarity and grouping analysis. Groups related documents by topic, purpose, or content similarity.
confirm-action"Ask the user to confirm before taking a significant action. Use before containment, remediation, or other impactful operations to ensure analyst approval. Presents options and waits for response."
correlate-ioc"Check for existing SIEM alerts and case management entries related to IOCs. Use to understand if an indicator has triggered previous alerts or is part of ongoing investigations. Takes IOC list and returns related alerts and cases."
deep-dive-ioc"Perform exhaustive analysis of a critical IOC. Use when an IOC needs Tier 2+ investigation beyond basic enrichment - includes GTI pivoting, deep SIEM searches, correlation with related entities, and threat attribution. For escalated IOCs requiring comprehensive investigation."
design-metadata-schemaDesign comprehensive metadata frameworks. Develops structured metadata templates and tagging systems.
document-in-case"Add a comment to a case to document findings, actions, or recommendations. Use to maintain audit trail during investigations. Requires CASE_ID and comment text."