nuxt-skill-hub 0.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/module.d.mts +41 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +1912 -0
- package/dist/types.d.mts +3 -0
- package/nuxt-best-practices/index.template.md +74 -0
- package/nuxt-best-practices/rules/abstraction-disambiguation.md +58 -0
- package/nuxt-best-practices/rules/architecture-boundaries.md +58 -0
- package/nuxt-best-practices/rules/content-modeling-navigation.md +58 -0
- package/nuxt-best-practices/rules/data-fetching-ssr.md +115 -0
- package/nuxt-best-practices/rules/error-surfaces-recovery.md +39 -0
- package/nuxt-best-practices/rules/hydration-consistency.md +58 -0
- package/nuxt-best-practices/rules/migrations.md +58 -0
- package/nuxt-best-practices/rules/module-authoring.md +77 -0
- package/nuxt-best-practices/rules/nitro-h3-patterns.md +96 -0
- package/nuxt-best-practices/rules/nuxt-ui-primitives.md +58 -0
- package/nuxt-best-practices/rules/page-meta-head-layout.md +58 -0
- package/nuxt-best-practices/rules/performance-rendering.md +77 -0
- package/nuxt-best-practices/rules/plugins.md +58 -0
- package/nuxt-best-practices/rules/server-routes-runtime-config.md +58 -0
- package/nuxt-best-practices/rules/verification-finish.md +58 -0
- package/package.json +64 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://nuxt-skill.onmax.me/og-image.png" alt="Nuxt Skill Hub" width="100%">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">nuxt-skill-hub</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">Teach your AI agent the Nuxt way with best practices and module guidance.</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://npmjs.com/package/nuxt-skill-hub"><img src="https://img.shields.io/npm/v/nuxt-skill-hub/latest.svg?style=flat&colorA=020420&colorB=00DC82" alt="npm version"></a>
|
|
11
|
+
<a href="https://npm.chart.dev/nuxt-skill-hub"><img src="https://img.shields.io/npm/dm/nuxt-skill-hub.svg?style=flat&colorA=020420&colorB=00DC82" alt="npm downloads"></a>
|
|
12
|
+
<a href="https://npmjs.com/package/nuxt-skill-hub"><img src="https://img.shields.io/npm/l/nuxt-skill-hub.svg?style=flat&colorA=020420&colorB=00DC82" alt="License"></a>
|
|
13
|
+
<a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js" alt="Nuxt"></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
> [!WARNING]
|
|
17
|
+
> This module is still experimental and not ready for production use.
|
|
18
|
+
|
|
19
|
+
## Documentation
|
|
20
|
+
|
|
21
|
+
**[nuxt-skill.onmax.me](https://nuxt-skill.onmax.me)**
|
|
22
|
+
|
|
23
|
+
## Install
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx nuxt module add nuxt-skill-hub
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
|
|
3
|
+
type SkillHubTarget = string;
|
|
4
|
+
|
|
5
|
+
type SkillSourceKind = 'dist' | 'github' | 'generated';
|
|
6
|
+
type SkillResolverKind = 'agentsField' | 'githubHeuristic' | 'metadataRouter';
|
|
7
|
+
interface ModuleOptions {
|
|
8
|
+
skillName?: string;
|
|
9
|
+
targets?: SkillHubTarget[];
|
|
10
|
+
moduleAuthoring?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface SkillHubContribution {
|
|
13
|
+
packageName: string;
|
|
14
|
+
version?: string;
|
|
15
|
+
sourceDir: string;
|
|
16
|
+
skillName?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
sourceKind?: SkillSourceKind;
|
|
19
|
+
sourceRepo?: string;
|
|
20
|
+
sourceRef?: string;
|
|
21
|
+
sourcePath?: string;
|
|
22
|
+
repoUrl?: string;
|
|
23
|
+
docsUrl?: string;
|
|
24
|
+
official?: boolean;
|
|
25
|
+
resolver?: SkillResolverKind;
|
|
26
|
+
forceIncludeScripts?: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface SkillHubContributionContext {
|
|
29
|
+
add: (contribution: SkillHubContribution) => void;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
33
|
+
|
|
34
|
+
declare module '@nuxt/schema' {
|
|
35
|
+
interface NuxtHooks {
|
|
36
|
+
'skill-hub:contribute': (ctx: SkillHubContributionContext) => void | Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { _default as default };
|
|
41
|
+
export type { ModuleOptions, SkillHubContribution, SkillHubContributionContext, SkillHubTarget };
|