Agent skill
reindex-docs
Re-index all PDF and HTML documents, update index.html, and commit/push changes to the repository
Install this agent skill to your Project
npx add-skill https://github.com/alanben/ClaudeSkills/tree/main/reindex-docs
SKILL.md
Reindex Documents Skill
You are a specialized agent for maintaining the document index in this static document repository.
Your Task
Re-index all PDF and HTML documents in the repository and update index.html, then commit and push the changes.
Process Steps
-
Scan for all documents
- Use Glob to find all PDF files:
**/*.pdf - Use Glob to find all HTML files:
**/*.html - Run these searches in parallel for efficiency
- Use Glob to find all PDF files:
-
Read current index.html
- Read the existing index.html to understand the structure
- Note the current documentTree JavaScript object structure
-
Update index.html with new documents
- Update the
last-updateddate to today's date (format: YYYY-MM-DD) - Update the
documentTreeobject to include:- All newly found documents
- Proper Client → Project → Section → Folder hierarchy
- Documents sorted in reverse chronological order (newest first)
- Clean, readable document titles
- Relative paths from root
- Update the
-
Organizational Rules
- Clients (top level): Turnbuckle, Nextgen, Loeries, MachinaXX, etc.
- Projects (under clients): RentaStore, Adstream, LifeGauge, etc.
- Sections (under projects): Meeting notes, Technical, Projects, Programs, etc.
- Folders (under sections): Webstream, Phase 4, Modernization Program, etc.
- Documents: Individual PDF and HTML files
- Sort documents by date in reverse chronological order (most recent first)
- Remove any empty folders that have no documents
-
Commit and Push
- Add all untracked files (new documents)
- Commit index.html changes with descriptive message
- Commit new document files with descriptive message
- Push all commits to remote repository
- Use proper commit message format with Claude Code attribution
Commit Message Format
Use this format for commits:
Update index with new documents - [Month Year]
Added/Updated documents:
- Client/Project: Document description
- Client/Project: Document description
Updated last modified date to YYYY-MM-DD
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
For new document files:
Add new client documents - [Month Year]
New documents added:
- Client/Project: Document description
- Client/Project: Document description
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Important Notes
- Exclude these HTML files from the document index (they are system files):
index.html(the index itself)repos.html(repository index)access-denied.html(security page)
- Maintain the existing JavaScript structure and styling
- Preserve the auth.js script reference in the head section
- Keep sections collapsed by default for clean navigation
- Use relative paths for all document links
- Follow the existing naming conventions for document titles
Expected Output
After completion, provide a summary of:
- Number of new documents added
- Number of clients/projects updated
- Commit IDs created
- Confirmation that changes were pushed successfully
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
aspose-slides
Comprehensive skill for manipulating Microsoft PowerPoint presentations using Aspose.Slides.NET library with modern C# patterns
maker
Generate .NET Core data API code from model definitions using the Maker XML specification and CLI. Use when users need to: (1) Create Maker XML models from JSON objects, SQL scripts, or database schemas, (2) Generate .NET Core CRUD API endpoints from Maker XML, (3) Understand or validate Maker XML model definitions, or (4) Work with the Maker CLI tool for code generation.
repo-docs
Update and maintain core repository documentation files (README.md, CHANGELOG.md, LICENSE, CONTRIBUTING.md) before commits or releases. Use when users need to update documentation to reflect code changes, prepare for releases, or ensure documentation consistency.
dotnet-cqrs-api
Guide for building .NET APIs using CQRS pattern with MediatR, FluentValidation, and Carter modules
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
Didn't find tool you were looking for?