THN Interview Prep

AI implementation roadmap

A phased plan for what to implement in this repo with strong AI-assist / agent fit: scripts, checks, skills, and generated docs. Use this to brief Cursor (or any agent) on the next buildable slice.

Principles

  • Keep notes-first unless a phase explicitly adds runnable code.
  • Prefer small PR-sized tasks an agent can finish in one session.
  • Every phase lists exit criteria so “done” is unambiguous.

Phase 0 — Already shipped (baseline)

ItemStatus
Problem mind-maps + 12-section template + diagramsDone
Patterns (20) + system design stackDone
scripts/validate-problems.shDone
scripts/refresh-knowledgebase.sh + docs/AI-KNOWLEDGE-BASE.md + AGENTS.md snapshotDone
Skill: knowledgebase-refreshDone
Rule: dsa-mind-map-repo.mdcDone

Agent note: Do not redo Phase 0 unless migrating layout.


Phase 1 — Guardrails (highest ROI, low scope creep)

IDImplementAI-fitExit criteria
1.1GitHub Actions workflowAgent writes YAMLOn PR/push: ./scripts/validate-problems.sh exits 0; optional python3 -m compileall on scripts/*.py
1.2Internal markdown link checkerSmall Python in scripts/Reports broken ](*.md) relative links; CI fails on broken links
1.3CONTRIBUTING.mdAgent drafts from templatesSingle doc: clone, edit rules, diagram rule, run refresh-knowledgebase.sh, PR checklist
1.4PROBLEM_INDEX vs disk diffScript compares index rows to topics/**/problems/*.mdPrints missing/orphan files; exit 1 if orphan LC files not in index (policy configurable)

Suggested order: 1.3 → 1.1 → 1.2 → 1.4.


Phase 2 — Knowledge automation

IDImplementAI-fitExit criteria
2.1Extend refresh scriptPythonOptionally append “recent git diff summary” to docs/AI-KNOWLEDGE-BASE.md (last N commits touching topics/)
2.2TAG_INDEX.md generatorParse ## Mind-Map TagsOne page: tag → list of problem links
2.3Spaced-repetition exportScript → CSVColumns: front (title), back (recognition cues bullets), tags
2.4Second Cursor skill: “new problem mind-map”SKILL.mdChecklist: copy template, name file, fill 12 sections, run validate + refresh

Suggested order: 2.4 → 2.2 → 2.3 → 2.1.


IDImplementAI-fitExit criteria
3.1MkDocs or VitePressAgent scaffolds confignpm run docs:dev serves searchable sidebar by topic; deploy recipe in README
3.2Algolia / Pagefind / built-in searchConfig onlySearch works on deployed site

Dependency: Phase 1 link checker reduces broken links before publishing.


Phase 4 — Runnable solutions (explicit scope increase)

IDImplementAI-fitExit criteria
4.1solutions/go layoutOne package, one LC smoke testExample: two-sum with table-driven test from snippet
4.2solutions/js layoutSame as GoJest or Node test runner documented
4.3Do not mirror all 226 problems at onceAgent batches by topicCONTRIBUTING explains “solutions optional per problem”

Warning: Doubles maintenance whenever snippets change; use only if you want executable truth.


Phase 5 — Advanced quality

IDImplementAI-fitExit criteria
5.1Mermaid validationCLI in CI or npx @mermaid-js/mermaid-cliFails if fenced mermaid blocks don’t parse
5.2Normalize “At a Glance”Scripted + manual reviewCompanies / Frequency use consistent enums
5.3Duplicate snippet detectorAST-light overlap across Go blocksReport only; human decides refactor

  1. Slice A: CONTRIBUTING.md + Phase 1.3
  2. Slice B: .github/workflows/validate.yml + Phase 1.1
  3. Slice C: scripts/check_internal_links.py + Phase 1.2
  4. Slice D: scripts/diff_problem_index.py + Phase 1.4
  5. Slice E: Skill new-problem-mind-map + Phase 2.4

Out of scope for this roadmap

  • Replacing markdown with a database (unless you explicitly want an app).
  • Auto-solving LeetCode via browser automation (fragile, ToS-sensitive).
  • Full video course production.

How to use this doc with Cursor

Paste in chat: “Implement Phase 1.2 from the AI tooling roadmap or “Do Slice B only.”

After each slice: run ./scripts/refresh-knowledgebase.sh and commit.


Last updated on

Spotted something unclear or wrong on this page?

On this page