{
  "id": "skl_957ae6a80f48",
  "slug": "skill-tanstack-router",
  "asset_type": "skill",
  "name": "TanStack Router (React) — Production Architecture & Agent Playbook",
  "tagline": "TanStack Router v1 with file-based routing, typed params, search validation, loaders, auth guards, and route preloading.",
  "description_md": "### Overview & Capability Scope\n**TanStack Router (React) — Production Architecture & Agent Playbook** (`skill-tanstack-router`) is a verified, portable `SKILL.md` playbook curated with **@steipete** for Grok Bot (`x.ai/bot/`), Claude Code (`~/.claude/skills/`), and Cursor (`.cursor/skills/`).\n\nTanStack Router v1 with file-based routing, typed params, search validation, loaders, auth guards, and route preloading.\n\n### Required Stack & Tooling\n- **Primary Stack:** TanStack Router, React\n- **Category:** `security-ops`\n- **Source & Reference:** [https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-router-react-cursorrules-prompt-file.mdc](https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-router-react-cursorrules-prompt-file.mdc)\n\n### Quickstart Installation\nInstall this `SKILL.md` playbook directly into your agent workspace:\n```bash\nnpx lightstate install skill-tanstack-router\n```\nOr copy the complete `SKILL.md` specification below into `.cursor/skills/skill-tanstack-router/SKILL.md` or `~/.claude/skills/skill-tanstack-router/SKILL.md`.\n\n### Verification Commands\n```bash\nnpx lightstate install skill-tanstack-router\ngit status --short\nnpm test || pytest || cargo test\n```\n",
  "primary_category": "security-ops",
  "categories_json": "[\"security-ops\", \"skills\"]",
  "tags_json": "[\"tanstack-router\", \"react\", \"skill-md\", \"security-ops\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"TanStack Router\", \"React\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @steipete.",
  "share_url": "",
  "deep_link_uri": "",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "npx lightstate install skill-tanstack-router",
  "skill_markdown": "---\nname: tanstack-router\ndescription: TanStack Router v1 with file-based routing, typed params, search validation, loaders, auth guards, and route preloading. Use when working with TanStack Router, React.\ntriggers:\n  - tanstack router\n  - tanstack router\n  - react\n---\n\n# TanStack Router (React) — Production Architecture & Agent Playbook\n\n## 1. When to Use This Skill\nLoad `skill-tanstack-router` whenever an engineering, architecture, or operations task involves **TanStack Router, React**. Specifically:\n- TanStack Router v1 with file-based routing, typed params, search validation, loaders, auth guards, and route preloading.\n- Designing, reviewing, refactoring, or debugging production configurations without guesswork or deprecated flags.\n- Running deterministic pre-flight validation and post-execution verification checks before reporting completion.\n\n## 2. Prerequisites & Required Environment\n- **Target Stack:** TanStack Router, React\n- **Permissions Boundary:** Read-only inspection by default; ask for explicit human confirmation before executing destructive mutations or production deployments.\n- **Reference Specification:** `https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-router-react-cursorrules-prompt-file.mdc`\n\n## 3. Step-by-Step Execution Playbook\n1. **Context & Configuration Discovery:**\n   Inspect existing project manifests (`package.json`, `tsconfig.json`, `pyproject.toml`, `Cargo.toml`, `wrangler.jsonc`, or schema declarations) before proposing changes. Never overwrite existing bindings or credentials blindly.\n2. **Deterministic Implementation:**\n   Apply the canonical production patterns for **TanStack Router**:\n   - Enforce strict schema and type validation at every external boundary.\n   - Include explicit error handling, structured telemetry, and idempotency keys on all mutating calls.\n   - Keep secrets in environment variables or managed secret stores—never hardcode tokens in source files.\n3. **Verification & Regression Gate:**\n   Run the verification commands below and inspect both exit codes and output payloads before marking the task complete.\n\n## 4. Reference Commands & CLI Workflow\n```bash\nnpx lightstate install skill-tanstack-router\ngit status --short\nnpm test || pytest || cargo test\n```\n\n## 5. Edge Cases & Anti-Hallucination Guardrails\n- **Zero Unverified Claims:** Never claim a build, migration, test run, or API call succeeded without inspecting the command output or HTTP status code.\n- **Rollback Readiness:** Always record the previous state or migration version so changes can be reverted cleanly if downstream health checks fail.\n",
  "starter_prompt": "Load the TanStack Router (React) — Production Architecture & Agent Playbook (skill-tanstack-router) playbook. First inspect our current configuration and codebase for TanStack Router, React. Then propose a concrete, step-by-step implementation plan following the skill-tanstack-router guardrails, run the non-destructive verification commands (npx lightstate install skill-tanstack-router), and summarize any findings, risks, or required environment variables before making production changes.",
  "project_url": "https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-router-react-cursorrules-prompt-file.mdc",
  "repo_url": "https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-router-react-cursorrules-prompt-file.mdc",
  "creator_handle": "steipete",
  "creator_name": "Peter Steinberger (@steipete)",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/steipete",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-router-react-cursorrules-prompt-file.mdc",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 291,
  "x_bookmarks": 523,
  "x_retweets": 130,
  "x_views": 4074,
  "human_upvotes": 291,
  "human_installs": 291,
  "bot_pulls": 523,
  "pulse_score": 87,
  "gravity_rank_score": 2166,
  "is_featured": 0,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T22:25:00Z",
  "updated_at": "2026-10-24T22:25:00Z",
  "verified_at": null,
  "primitive": "skill",
  "title": "TanStack Router (React) — Production Architecture & Agent Playbook",
  "description": "TanStack Router v1 with file-based routing, typed params, search validation, loaders, auth guards, and route preloading.",
  "category": "security-ops",
  "tags": "[\"tanstack-router\", \"react\", \"skill-md\", \"security-ops\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "steipete",
  "author_name": "Peter Steinberger (@steipete)",
  "author_avatar": null,
  "source_tweet_url": "https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-router-react-cursorrules-prompt-file.mdc",
  "github_url": "https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-router-react-cursorrules-prompt-file.mdc",
  "external_url": "https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-router-react-cursorrules-prompt-file.mdc",
  "upvotes_count": 291,
  "installs_count": 291
}