jmservera/aithena/path-metadata

Claude Code and agent skill by jmservera/aithena

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Extracting book metadata from filesystem paths and TDD patterns for metadata parsers

Install

npx vskill@latest install jmservera/aithena/path-metadata

SKILL.md

The same SKILL.md was published earlier as jmservera/aithena/path-metadata.

Context

Use when deriving title, author, year, and category from book paths before indexing into Solr, or when writing tests for path-based metadata extraction.

Patterns

Extraction Heuristics
  1. Honor explicit filename structure first
  • Author - Title (Year).pdf → author/title/year from filename
  • Category/Author - Title (Year).pdf → category from folder
  1. Use folder depth to separate category vs author
  • Category/Author/Title.pdf → first folder = category, second = author
  • Author/Title.pdf → parent folder = author (when filename doesn't look like a series/journal)
  1. Handle real aithena library cases
  • amades/Auca ... amades.pdf → amades as author, strip repeated suffix
  • balearics/ESTUDIS_BALEARICS_01.pdf → balearics as category, author="Unknown"
  • bsal/Bolletí ... 1885 - 1886.pdf → bsal as category; year ranges are metadata, not Author - Title separators
  1. Always provide fallbacks
  • Default title to filename stem with underscores → spaces
  • Default author to Unknown
  • Return file_path, folder_path, file_size alongside parsed metadata
TDD for Metadata Parsers
  1. Scan the real corpus first to capture true naming conventions
  2. Split tests into:
  • Portable temp-path fixtures for canonical patterns and edge cases
  • Real-library cases guarded with skipif (preserves local knowledge without breaking CI)
  1. Assert path fields (file_path, folder_path) relative to the parser's base_path
  2. Keep fallback tests strict: unknown patterns must not silently normalize or invent metadata
  3. Use a fixture that fails clearly when the target function doesn't exist yet (TDD-friendly)
Good targets for this pattern
  • Book/document library indexers
  • Media catalog importers
  • Archive ingestion pipelines
  • Any parser inferring metadata from directory layout

Anti-Patterns

  • Do not split on every ` - ` blindly — periodicals with year ranges will be misparsed
  • Do not assume a single top-level folder is always an author — some are categories or journal series
  • Do not rely on integration tests alone — portable temp fixtures catch edge cases faster

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jmservera/aithena/path-metadata/badge)](https://verified-skill.com/skills/jmservera/aithena/path-metadata)

Something wrong with this skill or its page? Tell us.