Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ export default defineConfig({

### :robot: FUNSTACK Static Skill

FUNSTACK Static provides an Agent Skill to feed your AI agents with knowledge about this framework. After installing `@funstack/static`, run the following command to add the skill to the project:
FUNSTACK Static provides an Agent Skill to feed your AI agents with knowledge about this framework. Run the following command to add the skill to the project:

```sh
npx funstack-static-skill-installer
npx -p @funstack/static funstack-static-skill-installer
# or
yarn funstack-static-skill-installer
yarn dlx -p @funstack/static funstack-static-skill-installer
# or
pnpm funstack-static-skill-installer
pnpm --package @funstack/static dlx funstack-static-skill-installer
# or, if you use skills CLI (https://skills.sh/)
npx skills add uhyo/funstack-static
```
Expand Down
6 changes: 5 additions & 1 deletion packages/docs/src/pages/GettingStarted.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ Only two files are required: `Root.tsx` and `App.tsx`. The paths to these files
If you use AI coding assistants like [Claude Code](https://docs.anthropic.com/en/docs/claude-code), you can install the FUNSTACK Static knowledge skill to help your AI assistant better understand the framework:

```bash
npx funstack-static-skill-installer
npx -p @funstack/static funstack-static-skill-installer
# or
yarn dlx -p @funstack/static funstack-static-skill-installer
# or
pnpm --package @funstack/static dlx funstack-static-skill-installer
# or, if you use skills CLI (https://skills.sh/)
npx skills add uhyo/funstack-static
```
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/pages/MigratingFromViteSPA.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Or with pnpm:
pnpm add @funstack/static
```

**Hint:** at this point, a skill installer command is available to add FUNSTACK Static knowledge to your AI agents. Run `npx funstack-static-skill-installer` (or `npx skills add uhyo/funstack-static` if you use [skills CLI](https://skills.sh/)) to add the skill. Then you can ask your AI assistant for help with the migration!
**Hint:** at this point, you can add FUNSTACK Static knowledge to your AI agents. Run `npx -p @funstack/static funstack-static-skill-installer` (or `npx skills add uhyo/funstack-static` if you use [skills CLI](https://skills.sh/)) to add the skill. Then you can ask your AI assistant for help with the migration!

## Step 2: Update Vite Config

Expand Down
8 changes: 4 additions & 4 deletions packages/static/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ For detailed API documentation and guides, visit the **[Documentation](https://s

### :robot: FUNSTACK Static Skill

FUNSTACK Static provides an Agent Skill to feed your AI agents with knowledge about this framework. After installing `@funstack/static`, run the following command to add the skill to the project:
FUNSTACK Static provides an Agent Skill to feed your AI agents with knowledge about this framework. Run the following command to add the skill to the project:

```sh
npx funstack-static-skill-installer
npx -p @funstack/static funstack-static-skill-installer
# or
yarn funstack-static-skill-installer
yarn dlx -p @funstack/static funstack-static-skill-installer
# or
pnpm funstack-static-skill-installer
pnpm --package @funstack/static dlx funstack-static-skill-installer
# or, if you use skills CLI (https://skills.sh/)
npx skills add uhyo/funstack-static
```
Expand Down
12 changes: 8 additions & 4 deletions packages/static/src/bin/skill-installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

import { install } from "@funstack/skill-installer";
import path from "node:path";
import { fileURLToPath } from "node:url";

const skillDir =
"./node_modules/@funstack/static/skills/funstack-static-knowledge";

const resolved = path.resolve(skillDir);
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// Resolve relative to this script (dist/bin/) so it works
// both when installed locally and via npx -p / pnpm dlx / yarn dlx.
const resolved = path.resolve(
__dirname,
"../../skills/funstack-static-knowledge",
);

console.log("Installing skill from:", resolved);

Expand Down