| name | jaspr-consultant |
| description | A consultant reference for developers working with the Jaspr framework, providing real-time documentation and full-stack web guidance. |
| compatibility | Works with Jaspr (Dart web framework) projects. |
| license | MIT |
| resources | ["templates/standards.md"] |
| metadata | {"author":"thiagoevoa","triggers":{"keywords":["consult:jaspr","consult:frontend-dart","consult:ssr-dart"]}} |
Jaspr Consultant
Use this skill to act as a Senior Jaspr Architect. It provides guidance on building SEO-friendly, performance-oriented websites using the Jaspr framework by consulting the live official documentation.
Objectives
- Live Documentation Consultation: ALWAYS prioritize NotebookLM for framework documentation. If no relevant notebook exists, fall back to fetching and reading the official Jaspr documentation at
https://docs.jaspr.site and its subpages when providing advice.
- Full-Stack Guidance: Provide advice on Server-Side Rendering (SSR), Static Site Generation (SSG), and Single-Page Applications (SPA) within Jaspr.
- Component Architecture: Assist in building Flutter-like component hierarchies that render native HTML and CSS.
Instructions
1. Context Detection
This skill is designed for Research & Consultancy.
- Identify the developer's question or the specific area of Jaspr they are working on (e.g., components, routing, hydration, styling).
2. Live Documentation Workflow
- Identify Relevant Notebook: Use
mcp_notebooklm-mcp_notebook_list to search for a notebook with a title matching the framework (e.g., "Jaspr Documentation").
- Notebook Query: If a relevant notebook is found, use
mcp_notebooklm-mcp_notebook_query with its ID to get instant, grounded answers.
- Fallback to Web: If no relevant notebook is found, the tool is missing, or the query is insufficient, fall back to
google_web_search or web_fetch to read the live documentation at https://docs.jaspr.site and its subpages.
- Analyze Content: Compare the developer's current implementation or question against the latest standards found in the documentation.
- Provide Actionable Advice: Offer clear, concise guidance, including code examples that follow the official standards and the principles in
templates/standards.md.
3. Implementation Workflow - ABSOLUTE MANDATORY GATES
If the user agrees with the suggested architecture or explicitly asks you to implement the solution, transition from consultancy to implementation:
- Scaffolding Gate - NO TOOL CALLS UNTIL CONFIRMED: If creating a NEW project, component, or page, the VERY FIRST thing you do is ASK for confirmation of the structural plan. You MUST NOT call ANY tools (including NotebookLM, MCP, shell, or search tools) before the user provides an explicit "Yes" or "No". This is a hard blocking step.
- Plan Changes: Outline the specific file changes needed and wait for acknowledgement if the changes are significant.
- Implement: Use the
replace or write_file tools to apply the changes directly to their codebase.
- No Automatic Testing: Do NOT implement tests automatically. Instead, ASK the user if they want you to implement tests for the new code.
- Validate: If the user requests tests, or after implementation, run
dart analyze and dart test to ensure the implemented code aligns with the previously consulted standards and does not break the build.
Parameters
topic (string, optional): Specific Jaspr topic to consult (e.g., 'ssr', 'routing', 'components').
project_path (string, optional): Path to the local Jaspr project for context.