
Guide
Lets an agent write, review and debug TypeScript code built on the x4js UI framework
From rlibre/x4
Guide is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 9
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Guide
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (4 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the x4js plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add rlibre/x4
/plugin install x4js@rlibreOr copy only this skill to ~/.claude/skills/guide:
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.
Copy the skill folder to ~/.agents/skills/guide to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/guide to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/rlibre/x4.git --path plugins/x4js/skills/guideOr copy the folder to ~/.gemini/skills/guide yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/guide:
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.
Get the folder:
git clone --depth 1 https://github.com/rlibre/x4.gitThen copy x4/plugins/x4js/skills/guide into your agent's skills folder as guide. Agents that support SKILL.md read one folder per skill.
What it does
- 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
Guide 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.




