kingwill101/routed/routed-views
Claude Code and agent skill by kingwill101/routed
- community
Checking that the SKILL.md file is still in the repository.
Maintain, extend, document, test, or troubleshoot the routed_views subsystem in the Routed Dart monorepo. Use when a task touches routed_views APIs, implementation, examples, tests, dependency boundaries, or integration with the Routed ecosystem.
Install
npx vskill@latest install kingwill101/routed/routed-viewsSKILL.md
The same SKILL.md was published earlier as kingwill101/routed/routed-views.
routed_views
This skill is the complete working guide for the routed_views subsystem. The facts below are intentionally embedded here so the skill can be used without loading another document.
Subsystem contract
- Package:
routed_views - Directory:
packages/routed_views - Version in this checkout:
0.2.0 - Role: View rendering, localization, and translation helpers
- Purpose: View rendering and translation integration for Routed. It owns view engines, provider configuration, locale resolution, translation loading, and EngineContext rendering extensions.
Public API
ViewServiceProvider(RoutedViewConfig(...))installs rendering andLocalizationServiceProvider(LocalizationConfig(...))installs translation.ctx.template,ctx.view,ctx.viewTrans, andctx.viewTransChoiceare the main request-facing extensions.LiquidViewEngine,LiquidRoot,ViewEngineManager,ViewExtensionRegistry, and view engine contracts define rendering.Translator,LocaleManager,MessageSelector,TranslationLoader, andFileTranslationLoaderdefine translation.QueryLocaleResolver,CookieLocaleResolver,SessionLocaleResolver, andHeaderLocaleResolverresolve request locale.registerRoutedViewsProviders()registers the adapter’s provider catalogue;kRequestLocaleAttributeidentifies request locale state.
Public imports
package:routed_views/routed_views.dart
Runtime package dependencies
routed_coreserver_contractsserver_storage
Composition rules
- Pass typed view directory and translation path configuration before engine creation; configuration is fixed for engine lifetime.
- Most applications use the routed facade; slim apps add both providers explicitly when they need rendering/localization.
- Keep templates, translation files, and locale policy separate; use a custom resolver for application-specific precedence.
Known hazards
- Return a clear TemplateNotFoundException/TemplateRenderException path; do not turn missing templates into silent empty responses.
- Avoid locale fallback behavior that ignores explicit request/cookie/session/header precedence.
- Test escaping, engine selection, translation parameters/plurals, missing keys, and file loader failures.
Minimal usage
Change workflow
- Preserve unrelated dirty work and keep changes scoped to
routed_views. - Keep the public import names and exported symbols above stable unless the
task explicitly changes the API. Never document a lib/src import.
- For provider or middleware changes, exercise registration, request-context
access, the success path, and the failure/reload path.
- For host or transport changes, test both the value/portable path and the
streaming/native path where this subsystem supports both.
- For generated output, make the input contract authoritative and verify the
generated artifact rather than hand-editing output.
- Update tests and user-facing package documentation when public behavior
changes; keep examples aligned with the usage contract above.
Focused test intent
Cover provider config, Liquid rendering, view/context extensions, custom engines/extensions, locale resolver precedence, translation loading, and message selection.
Focused validation
Keep this skill's embedded facts synchronized when a public package version, public barrel, or dependency boundary changes.
Ecosystem boundary rules
- Applications use
routedfor the full provider catalogue or
routed_core plus explicit adapters for slim compositions.
- Routed adapters depend on
routed_coreand matchingserver_*runtimes;
they must not depend on the batteries-included routed facade.
- Host I/O belongs in
routed_io,routed_node, orserver_native, not in
feature adapters.
- Framework-agnostic
server_*implementations must not import Routed from
lib/.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/routed_views/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kingwill101/routed/routed-views)