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-metadataSKILL.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
- Honor explicit filename structure first
Author - Title (Year).pdf→ author/title/year from filenameCategory/Author - Title (Year).pdf→ category from folder
- Use folder depth to separate category vs author
Category/Author/Title.pdf→ first folder = category, second = authorAuthor/Title.pdf→ parent folder = author (when filename doesn't look like a series/journal)
- Handle real aithena library cases
amades/Auca ... amades.pdf→amadesas author, strip repeated suffixbalearics/ESTUDIS_BALEARICS_01.pdf→balearicsas category,author="Unknown"bsal/Bolletí ... 1885 - 1886.pdf→bsalas category; year ranges are metadata, notAuthor - Titleseparators
- Always provide fallbacks
- Default
titleto filename stem with underscores → spaces - Default
authortoUnknown - Return
file_path,folder_path,file_sizealongside parsed metadata
TDD for Metadata Parsers
- Scan the real corpus first to capture true naming conventions
- 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)
- Assert path fields (
file_path,folder_path) relative to the parser'sbase_path - Keep fallback tests strict: unknown patterns must not silently normalize or invent metadata
- 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
- SKILL.md in the repositoryChecking.squad/skills/path-metadata/SKILL.md
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
[](https://verified-skill.com/skills/jmservera/aithena/path-metadata)