From david-skills
Audits wiki backlinks from heavily linked pages, verifies legitimacy against source data like rosters, social exports, and VCFs, identifies false links, and suggests fixes.
npx claudepluginhub thedavidweng/skillsThis skill uses the workspace's default tool permissions.
Audit wiki integrity by starting from heavily backlinked source pages and checking if all pages linking to them are legitimate. More efficient than checking pages randomly.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Processes PDFs: extracts text/tables/images, merges/splits/rotates pages, adds watermarks, creates/fills forms, encrypts/decrypts, OCRs scans. Activates on PDF mentions or output requests.
Share bugs, ideas, or general feedback.
Audit wiki integrity by starting from heavily backlinked source pages and checking if all pages linking to them are legitimate. More efficient than checking pages randomly.
[[target]], count per slug, sort by frequency.student-roster, is their name actually in the roster?system/wiki/index.md.student-roster-2018-2019 when not in rosterWhen multiple people share the same English name (e.g., John, Peter, Jack), links using [[slug|EnglishName]] can accidentally point to the wrong person.
zhang-san / Peter)[[slug|EnglishName]] links where display is pure English nameimport re, os
from collections import defaultdict
# 1. Build slug -> English name mapping
slug_to_eng = {}
eng_to_slugs = defaultdict(list)
for f in os.listdir("wiki/people"):
if f.endswith('.md'):
slug = f[:-3]
with open(f"wiki/people/{f}") as fh:
content = fh.read()
title_match = re.search(r'^# (.+)$', content, re.MULTILINE)
if title_match:
title = title_match.group(1)
eng_match = re.search(r'/\s*([A-Z][a-z]+)', title)
if eng_match:
eng_name = eng_match.group(1)
slug_to_eng[slug] = eng_name
eng_to_slugs[eng_name].append(slug)
# 2. Filter to duplicates only
dup_eng = {k: v for k, v in eng_to_slugs.items() if len(v) > 1}
# 3. Find all [[slug|EnglishName]] links with mismatched names
for root, dirs, files in os.walk("wiki"):
for f in files:
if not f.endswith('.md'): continue
with open(os.path.join(root, f)) as fh:
content = fh.read()
for m in re.finditer(r'\[\[[^\]|]+\|([^\]]+)\]\]', content):
display = m.group(1).strip()
if re.match(r'^[A-Z][a-z]+$', display) and display in dup_eng:
# verify context to flag potential mismatches
print(f"DUPLICATE_NAME_LINK: {f} -> [[...|{display}]]")
Replace [[wrong-slug|EnglishName]] with [[correct-slug|EnglishName]]. Verify context (family relationships, social circles) to determine correct target.
person-a.md had [[person-b-john|John]] instead of [[person-c-john|John]] — wrong John for the spouse relationship. Fixed by changing to the correct slug.
After building wiki, compare memory entries against wiki pages. Items that appear in memory but lack wiki pages are candidates for new entries. Prioritize: social circles, institutions, projects, conventions.