DavidCho1999/archaiflow-skills / bundles/construction-admin/skills/drawing-set-bookmarker
drawing-set-bookmarker
VerifiedThis skill should be used when the user has a multi-sheet architectural drawing-set PDF (typically 50–300 sheets) with no bookmarks or a flat/incorrect bookmark tree, and wants a properly bookmarked PDF plus a CSV sheet index. Trigger on "bookmark this drawing set", "add bookmarks to this PDF", "tabulate sheets", "make a sheet index", or a pasted path to a multi-sheet drawing PDF. Reads each page's title block via vision, extracts sheet number/name/discipline, groups by discipline per US National CAD Standard, and writes the bookmarked PDF + index to `docs/drawing-sets/`.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.3 KB |
| assets/drawing-sets-index-template.md | markdown | 164 B |
| assets/index-template.csv | other | 64 B |
| references/bookmark_grouping_strategies.md | markdown | 3.5 KB |
| references/ncs_sheet_numbering.md | markdown | 4.3 KB |
| references/titleblock_locations.md | markdown | 4.0 KB |
| scripts/append_to_index.py | script | 1.4 KB |
| scripts/apply_bookmarks.py | script | 4.2 KB |
| scripts/init_workspace.py | script | 1.9 KB |
scripts/init_workspace.py
View on GitHub#!/usr/bin/env python3
"""Bootstrap docs/drawing-sets/ folder and verify pikepdf availability."""
import argparse
import importlib.util
import sys
from pathlib import Path
DEFAULT_INDEX_TEMPLATE = """# Drawing Sets — Processed Log
| Date | Source PDF | Sheet Count | Bookmarked PDF | Index CSV |
|------|------------|-------------|----------------|-----------|
"""
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
"--sets-dir",
default="docs/drawing-sets",
help="Drawing-sets directory (default: docs/drawing-sets)",
)
parser.add_argument(
"--template",
help="Path to index template (overrides default)",
)
parser.add_argument(
"--skip-deps-check",
action="store_true",
help="Skip pikepdf import check",
)
args = parser.parse_args()
sets_dir = Path(args.sets_dir)
sets_dir.mkdir(parents=True, exist_ok=True)
(sets_dir / ".cache").mkdir(exist_ok=True)
index_file = sets_dir / "index.md"
if not index_file.exists():
if args.template and Path(args.template).exists():
content = Path(args.template).read_text()
else:
content = DEFAULT_INDEX_TEMPLATE
index_file.write_text(content)
print(f"Created: {index_file}")
else:
print(f"Index already exists: {index_file}")
if not args.skip_deps_check:
if importlib.util.find_spec("pikepdf") is None:
print(
"ERROR: pikepdf is not installed. Bookmark application requires it.\n"
"Install with one of:\n"
" pip install pikepdf\n"
" pip3 install pikepdf\n"
" python3 -m pip install pikepdf",
file=sys.stderr,
)
sys.exit(2)
print("pikepdf: OK")
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |