# Guide

> Guide is an open-source agent skill for developer tools. Lets an agent write, review and debug TypeScript code built on the x4js UI framework. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/rlibre/x4/tree/main/plugins/x4js/skills/guide
- **Repository:** https://github.com/rlibre/x4
- **GitHub stars:** 9
- **License:** MIT
- **Skill name:** guide
- **Collection:** https://github.com/rlibre/x4
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill points the agent to the documentation shipped inside the x4js package in a project's node_modules folder, such as the coding rules, the class reference and the command line guide. It tells the agent to read the installed version's docs before writing code, so it works from the actual API rather than habits from other UI frameworks.

The workflow centers on checking every class, property and method against those docs or the package's TypeScript sources, and on building component trees once and updating them through their methods. It also steers the agent to use the project's own npm scripts for dev server and production builds, and to run a TypeScript type check when a configuration is present.

The skill expects an x4js project or a request to create one, plus TypeScript and Node tooling. If a documentation file is missing, the agent is told to fetch it from the x4 GitHub repository and to flag that it may describe a newer version than the one installed.

## When your agent uses it

> Write, review and debug code that uses x4js, the TypeScript object-component UI framework (`import { ... } from 'x4js'`), and run its `x4js` command line. Use this skill whenever a project depends on x4js, or the user mentions x4js, x4, an x4 component (Component, VBox, HBox, Listbox, Gridview, Treeview, Spreadsheet, Chart, Dialog, Form, Combobox...), `x4.config.json`, `x4js create`, `x4js dev` or `x4js build`, even for a small change. The x4js API is small and specific, and code written from habits of React or other frameworks does not compile, so the exact API must be read from the files this skill points to.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/rlibre/x4/tree/HEAD/plugins/x4js/skills/guide)
- [License: MIT](https://github.com/rlibre/x4/tree/HEAD/plugins/x4js/skills/guide)

## Features

- **Installed docs lookup:** Directs the agent to read the coding rules, class reference and CLI guide bundled in node_modules/x4js.
- **API verification:** Requires checking every class, prop and method used against the docs or the package sources.
- **Object-based component model:** Guides building persistent component objects and updating them through their own methods instead of rebuilding trees.
- **Command line usage:** Covers using x4js create, dev and build through the project's npm scripts rather than custom bundler setup.
- **Type check before finishing:** Asks the agent to run a TypeScript type check when a configuration file is present.
- **Fallback documentation fetch:** Falls back to the x4 GitHub repository when a documentation file is missing from the installed package.

## Good for

- Write a new screen with x4js Listbox and Form components
- Review existing x4js code for API misuse
- Debug a build error in an x4js project
- Create a new x4js project and start the dev server
- Update a Gridview or Treeview in an x4js app

## Install

### Claude Code

This skill ships in the `x4js` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add rlibre/x4
/plugin install x4js@rlibre
```

Or copy only this skill to `~/.claude/skills/guide`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rlibre/x4.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/guide &&
cp -R "$tmp/plugins/x4js/skills/guide" ~/.claude/skills/guide &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/guide` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/guide` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rlibre/x4.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/guide &&
cp -R "$tmp/plugins/x4js/skills/guide" ~/.agents/skills/guide &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/guide` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/guide` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rlibre/x4.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/guide &&
cp -R "$tmp/plugins/x4js/skills/guide" ~/.cursor/skills/guide &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/guide` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/rlibre/x4.git --path plugins/x4js/skills/guide
```

Or copy the folder to `~/.gemini/skills/guide` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/guide`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rlibre/x4.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/guide &&
cp -R "$tmp/plugins/x4js/skills/guide" ~/.copilot/skills/guide &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/guide` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/rlibre/x4.git
```

Then copy `x4/plugins/x4js/skills/guide` into your agent's skills folder as `guide`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Guide need x4js installed in the project?

Yes. The skill reads the documentation that ships inside node_modules/x4js. If that is missing, it fetches the files from the x4 GitHub repository and notes they may be a newer version.

### When does the skill trigger?

When a project depends on x4js, or when the user mentions x4js, an x4 component, x4.config.json, or the x4js create, dev or build commands.

### Does Guide run any scripts?

No. The skill ships a single SKILL.md file with no scripts.

### How do I install Guide in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/guide to use it in all your projects, or to .claude/skills/guide in one project. Or install the x4js plugin, which includes it: /plugin marketplace add rlibre/x4, then /plugin install x4js@rlibre.

### Does Guide run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Guide?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Guide?

The closest alternatives to Guide are Oo component documentation, Developing genkit js, Documentation writer, TypeScript best practices and Antfu.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Oo component documentation](https://ai-powered.com/skills/oo-component-documentation): Oo component documentation is an open-source agent skill for developer tools.
- [Developing genkit js](https://ai-powered.com/skills/developing-genkit-js): Developing genkit js is an open-source agent skill for developer tools.
- [Documentation writer](https://ai-powered.com/skills/documentation-writer): Documentation writer is an open-source agent skill for developer tools.
- [TypeScript best practices](https://ai-powered.com/skills/typescript-best-practices): TypeScript best practices is an open-source agent skill for developer tools.
- [Antfu](https://ai-powered.com/skills/antfu): Antfu is an open-source agent skill for developer tools.
- [Vue](https://ai-powered.com/skills/vue): Vue is an open-source agent skill for developer tools.
- [Nuxt](https://ai-powered.com/skills/nuxt): Nuxt is an open-source agent skill for developer tools.
- [Create docs](https://ai-powered.com/skills/create-docs): Create docs is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/guide
