citation-fixer

Scan brain pages and rewrite malformed Source citations to canonical format.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/ngochuy13/intern-dev --skill citation-fixer-ngochuy13
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: citation-fixer
Source: https://github.com/ngochuy13/intern-dev/tree/main/skills/citation-fixer
Command: npx skills add https://github.com/ngochuy13/intern-dev --skill citation-fixer-ngochuy13

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill audits and repairs missing or malformed inline Source citations across brain pages so claims are properly attributed using the canonical format.

Core Features & Use Cases

  • Citation Compliance Audit: Scans every brain page for inline [Source: ...] citations and flags non-compliance with specific issue types and locations.
  • Deterministic Citation Repair: Rewrites malformed citations to match the repository’s standard citation convention.
  • (v0.25.1) Broken X/Twitter Reference Resolution: Detects tweet/post citations missing x.com URLs and resolves them through the host’s X API integration to patch deterministic https://x.com/<handle>/status/<id> links.
  • Reporting & Metrics: Produces an audit report with counts of pages scanned, citations found, issues fixed, tweet links resolved, and remaining gaps.

Quick Start

Run citation-fixer to audit and fix citations across your brain pages and resolve any broken tweet references via the configured X integration.

Frequently Asked Questions about citation-fixer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix missing or malformed inline citations on my web pages?

To fix missing or malformed inline citations, you can run an automated citation audit that scans your pages, identifies format issues, and rewrites them to match your canonical attribution conventions.

How do I resolve broken X/Twitter references that lack actual x.com URLs?

To resolve broken X/Twitter references lacking x.com URLs, you can use a tool that detects hand-wavy attributions and patches deterministic links by sourcing tweet metadata via the X API.

What is a deterministic citation link and when do I need it for tweet attribution?

A deterministic citation link is a verified URL constructed from specific metadata, such as an x.com status link. You need it when auditing pages to ensure tweet attributions point to actual sources rather than vague text.

Can I audit my entire repository for citation compliance and get a report of fixes?

Yes, you can audit your entire repository for citation compliance. The process scans all pages, rewrites malformed citations, resolves tweet links, and outputs a structured report with counts of pages scanned, fixes applied, and remaining gaps.

Does fixing broken tweet citations require a specific API integration?

Yes, resolving broken tweet citations that lack x.com URLs requires an X API integration. This allows the tool to fetch verifiable tweet metadata and construct deterministic links for accurate attribution.

What are the limitations when repairing citations across brain pages?

Limitations include remaining gaps after automated repairs and dependence on the X API for resolving tweet references. The audit report highlights any unresolved citation issues for manual review.