Skip to content
Skillv1.0.0

pages

Auto-generated by `@generouted/solid-router`. **Add a route = add a file** here; `src/router.ts` is generated and must not be hand-edited.

by ayou33(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from ayou33/MineWAPP (src/pages/AGENTS.md). Install upstream with npx skills add ayou33/MineWAPP --skill pages. Copyright stays with the author.

src/pages — Routes

Auto-generated by @generouted/solid-router. Add a route = add a file here; src/router.ts is generated and must not be hand-edited.

Pattern

Every page is a thin wrapper:

import ScopedPage from '@/provider/scopedPage/ScopedPage'
import { AUTH_ROLE } from '@/config'
import Foo from '@/modules/foo/Foo.index'

export default function FooPage () {
  return <ScopedPage scope={AUTH_ROLE.PRIVATE} pageCode="foo">{Foo}</ScopedPage>
}

Current routes

/ (home), /about, /auth, /example — all AUTH_ROLE.PASSENGER.

Conventions

  • Keep pages to the wrapper only — all UI lives in src/modules/.
  • Choose scope from AUTH_ROLE; unauthenticated users on USER+ pages are redirected to AUTH_PATH.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/ayou33-minewapp-pages/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

ayou33-minewapp-pages.ocm.jsonjson
{
  "ocm": "1",
  "id": "ayou33-minewapp-pages",
  "kind": "skill",
  "name": "pages",
  "description": "Auto-generated by `@generouted/solid-router`. **Add a route = add a file** here; `src/router.ts` is generated and must not be hand-edited.",
  "publisher": "ayou33",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Auto-generated by `@generouted/solid-router`. **Add a route = add a file** here; `src/router.ts` is generated and must not be hand-edited."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/ayou33/MineWAPP",
      "path": "src/pages/AGENTS.md",
      "ref": "1d9a56def927be3b31047bbe350ff6de8247a549",
      "url": "https://github.com/ayou33/MineWAPP/blob/1d9a56def927be3b31047bbe350ff6de8247a549/src/pages/AGENTS.md",
      "key": "ayou33/MineWAPP/src/pages/AGENTS.md"
    }
  },
  "instructions": "# src/pages — Routes\n\nAuto-generated by `@generouted/solid-router`. **Add a route = add a file** here; `src/router.ts` is generated and must not be hand-edited.\n\n## Pattern\nEvery page is a thin wrapper:\n```tsx\nimport ScopedPage from '@/provider/scopedPage/ScopedPage'\nimport { AUTH_ROLE } from '@/config'\nimport Foo from '@/modules/foo/Foo.index'\n\nexport default function FooPage () {\n  return <ScopedPage scope={AUTH_ROLE.PRIVATE} pageCode=\"foo\">{Foo}</ScopedPage>\n}\n```\n\n## Current routes\n`/` (home), `/about`, `/auth`, `/example` — all `AUTH_ROLE.PASSENGER`.\n\n## Conventions\n- Keep pages to the wr",
  "cost": {
    "context_tokens": 187
  }
}

Fetch it by URL: GET /api/v1/registry/ayou33-minewapp-pages/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.