How rakeshcheekatimala/answerlint works
AnswerLint is a CLI for auditing content’s AI-answer clarity and trustworthiness, reporting scores and actionable recommendations; it also supports report comparisons, a local watch TUI, and llms.txt generation and linting. The main workflow is CLI input → crawl or parse content → run audits → score and recommend → write a selected report. The graph includes these separate product branches and the documented diff/TUI capabilities. Some command and subsystem implementations were not excerpted, so their internal links are omitted rather than inferred.
Main entry points: audit.ts Audit command · cli/index.ts CLI dispatcher · llms.ts LLMS commands · crawler/index.ts Input crawler
Components 28
CLI entry
- CLI dispatcher
src/cli/index.ts - Audit command
src/cli/commands/audit.ts - Diff command
src/cli/commands/diff.ts - LLMS commands
src/cli/commands/llms.ts - Overview command
src/cli/commands/overview.ts - TUI command
src/cli/commands/tui.ts
Content acquisition
- Audit configuration
src/config/index.ts - Input crawler
src/crawler/index.ts - URL fetcher
src/crawler/url-fetcher.ts - Local parser
src/crawler/local-parser.ts - Sitemap reader
src/crawler/sitemap.ts - Robots checker
src/crawler/robots.ts
Audit and scoring
- Audit runner
src/audits/runner.ts - AEO checks
src/audits/aeo - GEO checks
src/audits/geo - Custom rules
src/audits/custom-rules.ts - Citation health
src/audits/geo/outbound-citation-health.ts - Score calculation
src/scoring/index.ts - Citation readiness
src/scoring/citation-readiness.ts
Results and comparison
- Recommendations
src/recommendations/index.ts - Audit reporters
src/reporters - Report comparison
src/diff
LLM roadmaps
- Source discovery
src/llms/discover.ts - Metadata extraction
src/llms/extract.ts - Roadmap rendering
src/llms/render.ts - Roadmap linting
src/llms/lint.ts
Interactive review
- Watch interface
src/tui
Other components
- Content team
Connections 32
- Content team → CLI dispatcher: runs commands
- CLI dispatcher → Audit command: dispatches
src/cli/index.ts - CLI dispatcher → Diff command: dispatches
src/cli/index.ts - CLI dispatcher → LLMS commands: dispatches
src/cli/index.ts - CLI dispatcher → Overview command: dispatches
src/cli/index.ts - CLI dispatcher → TUI command: dispatches
src/cli/index.ts - Audit command → Audit configuration: loads
src/cli/commands/audit.ts - Audit command → Input crawler: crawls inputs
src/cli/commands/audit.ts - Input crawler → URL fetcher: fetches URLs
src/crawler/index.ts - Input crawler → Local parser: parses files
src/crawler/index.ts - Input crawler → Sitemap reader: reads sitemap
src/crawler/index.ts - Input crawler → Robots checker: checks access
src/crawler/index.ts - Audit command → Audit runner: runs checks
src/cli/commands/audit.ts - Audit runner → AEO checks: runs checks
src/audits/runner.ts - Audit runner → GEO checks: runs checks
src/audits/runner.ts - Audit runner → Custom rules: runs rules
src/audits/runner.ts - Audit command → Citation health: runs network checks
src/cli/commands/audit.ts - Audit command → Recommendations: generates fixes
src/cli/commands/audit.ts - Audit command → Score calculation: computes scores
src/cli/commands/audit.ts - Score calculation → Audit configuration: gets weights
src/scoring/index.ts - Audit command → Audit reporters: writes reports
src/cli/commands/audit.ts - Diff command → Report comparison
- Content team → Diff command: compares reports
- LLMS commands → Source discovery: discovers sources
src/cli/commands/llms.ts - LLMS commands → Metadata extraction: builds document
src/cli/commands/llms.ts - LLMS commands → Roadmap rendering: renders files
src/cli/commands/llms.ts - LLMS commands → Roadmap linting: validates output
src/cli/commands/llms.ts - Source discovery → Sitemap reader: discovers URLs
src/llms/discover.ts - Source discovery → URL fetcher: fetches pages
src/llms/discover.ts - Content team → LLMS commands: generates or lints
- TUI command → Watch interface
- Content team → TUI command: watches edits