forgent
v1.4.0
Published
shadcn-style installer for AI agent skills. Pick from a remote registry and copy the skill folder where your harness reads it: .agents/skills (Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Kilo Code…) or .claude/skills (Claude Code). You own the co
Maintainers
Readme
forgent
Forge your agent's skills.
A shadcn/ui-style installer for AI agent skills. Pick a skill from a remote registry, copy the source into your agent's skills folder, and own the copy. Works with any harness that reads the Agent Skills standard — Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Kilo Code, Claude Code, and many others, including your team's own tools.
# in your project: one folder for most harnesses, one for Claude Code
npx forgent add --provider agents,claude --project angular-reviewThe principle (same as shadcn/ui)
shadcn/ui is not an npm dependency — it is a registry of components plus a CLI that copies the source into your project. You own the code afterwards.
forgent brings the same model to AI agent skills. Pick a skill from the
registry, run forgent add --provider <name> <skill>, and the source markdown
is copied into your agent's local skills directory under a provider-appropriate
filename. The CLI then steps out — your copy is yours to edit.
| shadcn/ui | forgent |
| ----------------------------------------------- | --------------------------------------------------------- |
| components.json config in the project | forgent.config.json in your cwd (optional) |
| Remote registry served over HTTPS | Remote registry served over HTTPS |
| npx shadcn add button | npx forgent add --provider claude angular-review |
| Source copied into src/components/ui | Source copied into your provider's skills/prompts/rules dir |
| You own the file | Same — your copy is yours |
Install
No install needed — invoke with npx:
npx forgent add --provider agents,claude --project angular-reviewOr install globally:
npm install -g forgent
forgent add --provider agents angular-reviewInstalled globally, the command is just forgent: every example below works with or without npx.
Requires Node 18+ (uses the global fetch). Git registries (git+https://…) also need git on PATH.
Quick tour
$ npx forgent list
angular-review Senior-level review of Angular changes — a branch, a PR/MR, staged files or a commit range …
review-fix Applies the findings of a review one at a time, build and tests after each …
pr-handoff Writes the PR/MR description and a hand-off note …
skill-smith Creates and validates Agent Skills …
$ npx forgent show angular-review
name [email protected]
files 21, of which 7 script(s) your agent can run
! scripts/scan.mjs … script
…
$ npx forgent add --provider agents,claude --project angular-review
added angular-review (agents) -> ./.agents/skills/angular-review
added angular-review (claude) -> ./.claude/skills/angular-review
$ cat forgent.lock.json
{
"lockfileVersion": 1,
"skills": {
"angular-review": {
"registry": { "name": "agent-skill", "version": "0.5.0", "source": "https://raw.../main" },
"skillVersion": "2.1.0",
"provider": "claude",
"installedAt": "2026-10-09T14:02:11.000Z",
"files": [{ "path": "SKILL.md", "sha256": "…" }, …],
"installs": [
{ "provider": "agents", "path": ".agents/skills/angular-review", "skillVersion": "2.1.0", "files": […] },
{ "provider": "claude", "path": ".claude/skills/angular-review", "skillVersion": "2.1.0", "files": […] }
]
}
}
}
$ npx forgent verify
-- angular-review (agents) .agents/skills/angular-review
OK angular-review/SKILL.md
OK angular-review/scripts/scan.mjs
…
verified 1 skill(s), 2 install(s)A scripted version of this tour lives in demo/ — demo/demo-script.sh
plus a terminalizer config to
regenerate the GIF when commands change. The demo/ folder is git-only; it does
not ship to npm.
Supported providers
| Provider | Project (--project) | User (--user) | Layout | Read by |
| -------- | --------------------- | --------------- | ------ | ------- |
| agents | .agents/skills/<name>/ (default) | ~/.agents/skills/<name>/ | whole skill folder | Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Kilo Code and most Agent Skills harnesses (user level: Codex; check yours) |
| claude | .claude/skills/<name>/ | ~/.claude/skills/<name>/ (default) | whole skill folder | Claude Code, Continue |
| copilot | — | <VS Code user dir>/prompts/<name>.prompt.md | single file (legacy) | Copilot prompt files |
| codex | — | ~/.codex/skills/<name>.md | single file (legacy) | not loaded by Codex on its own |
| cursor | — | ~/.cursor/rules/<name>.mdc | single file (legacy) | Cursor rules |
Pass several providers at once: --provider agents,claude fetches each skill
once and copies it into both folders — between them, every harness above. A space
works as a separator too (--provider "agents claude"), which also covers
PowerShell, where an unquoted agents,claude reaches forgent as agents claude.
Which provider?
- For a team:
--provider agents,claude --project, then commit the two folders andforgent.lock.json. Everyone gets the skill, whatever their tool. - For yourself:
--provider claude(Claude Code) or--provider agents --user. - Your tool is not listed? If its docs talk about Agent Skills or
SKILL.md, it reads a skills folder — usually.agents/skills: use--provider agents, or--dest <its folder>. If it does not know skills, point its instructions file (AGENTS.mdor equivalent) at the installedSKILL.md. - The single-file providers (
copilot,codex,cursor) predate the standard and are kept for 1.x compatibility. They copySKILL.md(or a pre-rendered variant) only: a skill that ships scripts, references or assets loses them, and forgent warns when that happens. Codex, Copilot and Cursor now read skill folders: prefer--provider agents.
copilot install dir per OS:
- Windows:
%APPDATA%\Code\User\prompts - macOS:
~/Library/Application Support/Code/User/prompts - Linux:
~/.config/Code/User/prompts
Caveat: frontmatter
Folder providers install the skill as published: harnesses that read the
Agent Skills standard all understand its frontmatter (name, description,
plus optional fields they ignore when unknown). For the legacy single-file
providers you may need to adjust frontmatter after add: Copilot prompts
(mode, tools), Cursor rules (globs, alwaysApply). Since you own the
copy, edit it freely.
Pre-rendered provider variants
If a skill's source folder ships a <name>.prompt.md (Copilot) or
<name>.codex.md (Codex) alongside SKILL.md, forgent installs that variant
instead of SKILL.md for the matching provider. Use this when you want to
ship hand-tuned content per provider — frontmatter, prompt style, tool list —
without asking users to edit after install. The folder providers (agents,
claude) copy the whole skill folder, so they always have every file. cursor
currently has no variant convention and always uses SKILL.md.
Usage
# inspect what's available — and read a skill before you install it
npx forgent providers
npx forgent list
npx forgent info angular-review
npx forgent show angular-review # SKILL.md + file list, scripts flagged
npx forgent show angular-review --all # every file, scripts included
# a team install: committed in the project, read by every harness
npx forgent add --provider agents,claude --project angular-review
# a personal install
npx forgent add --provider claude angular-review # ~/.claude/skills
npx forgent add --provider agents --user angular-review # ~/.agents/skills
# pin to an exact version (registry must declare items[].version)
npx forgent add --provider agents [email protected]
# verify every recorded install still matches the lockfile (no network)
npx forgent verify
npx forgent verify --provider agents # only the agents installs
# what is behind the registry, and update it (local edits need --force)
npx forgent outdated
npx forgent update --dry-run
npx forgent update
# uninstall one install (the other stays in the lockfile)
npx forgent remove --provider claude --project angular-review
# persist defaults for this directory
npx forgent init --provider agents,claude --project
# subsequent calls don't need the flags
npx forgent add angular-reviewRead before you install
A skill is code your agent runs with your rights: its scripts/ run on your
machine, its instructions steer your agent. forgent helps you look first:
forgent show <name>fetches the skill (with the usual sha256 checks) into a temporary folder, printsSKILL.mdand the file list with scripts flagged —--allprints every file. Nothing is installed.forgent addlists the scripts a skill ships and asks before installing it in a terminal ([y/N]).--yesskips the question. Without a terminal (CI, pipes) forgent prints the notice and goes on, as in 1.1.forgent updatenever overwrites a copy you edited: an install whose files differ from the lockfile is left alone unless--force.
Integrity & lockfile
Registries can ship a SHA256 for each file:
{
"files": [
{ "path": "SKILL.md", "type": "skill:main", "sha256": "abc...64-hex-chars..." }
]
}When sha256 is present, forgent verifies the fetched body matches before
writing — a mismatch aborts with both hashes in the error. When absent, the
install errors (strict mode is the default since 1.0). To opt out and fall
back to a one-time WARN per skill, pass --no-strict-sha256 or set
FORGENT_STRICT_SHA256=0. Use the opt-out only as a migration crutch for
registries that have not adopted sha256 yet.
forgent add [email protected] pins to an exact version. The registry must declare
items[].version; otherwise the install errors with a clear message. Use
this when you want the same skill version across machines or CI runs.
Each successful add records what was installed in forgent.lock.json
next to forgent.config.json. Since 1.1, each skill also lists its
installs — one per location, with the path relative to the project when it
is inside it (~/… under your home), so a committed lockfile works on every
machine. The top-level fields still describe the latest install, as in 1.0.
Shape:
{
"lockfileVersion": 1,
"skills": {
"angular-review": {
"registry": { "name": "agent-skill", "version": "0.1.0", "source": "https://raw.../main" },
"skillVersion": "0.1.0",
"provider": "claude",
"installedAt": "2026-05-26T14:32:11.000Z",
"files": [{ "path": "SKILL.md", "sha256": "..." }],
"installs": [
{ "provider": "agents", "path": ".agents/skills/angular-review", "skillVersion": "0.1.0", "installedAt": "…", "files": [ … ] }
]
}
}
}Commit the lockfile to your repo and run forgent verify in CI to confirm
nobody (and nothing) has touched the installed skill files since add.
verify re-hashes every recorded install against the lockfile and exits 1 on
any mismatch — no network, purely local. --provider and --dest narrow the
check; a 1.0 lockfile (no installs) is checked at the location the flags,
FORGENT_INSTALL_DIR or forgent.config.json give, as before.
# .github/workflows/skills.yml — fail the PR when an installed skill drifts
- uses: actions/checkout@v4
- run: npx --yes forgent@1 verifyforgent remove drops that install from the lockfile, and the whole entry
once no install is left. --dry-run skips the write.
fs-mode caveat: when
--registryis a local path, the install is a whole-directory copy and per-file fetch verification is skipped. The lockfile is still written andverifystill works against installed files.
Commands
forgent providers— list supported providers, their default install dir and scope.forgent list— list every skill in the registry with its description.forgent info <name>— show one skill's metadata and the files that would be copied.forgent show <name>[@<version>] [--all]— fetch a skill into a temporary folder (sha256 checked) and printSKILL.mdand its files, scripts flagged;--allprints every file. Installs nothing.forgent outdated— compareforgent.lock.jsonwith the active registry:outdated(another version),changed(same version, different published files),up to date,not in registry. Exits 1 when something is behind.forgent update [<name>...] [--force] [--dry-run]— bring skills to the registry's version in every place the lockfile records, showing which files are added, changed or removed. An install with local edits is left alone (exit 1) unless--force.forgent add --provider <p>[,<p>…] <name>[@<version>]...— copy one or more skills into each provider's install dir (--project/--userpick the scope). Refuses to overwrite unless--force. Pinning to@<version>requires the registry to declareitems[].version. Warns when a single-file provider would drop part of a skill.forgent remove --provider <p>[,<p>…] <name>— delete an installed skill from each provider's install dir, and drop those installs from the lockfile.forgent init [--provider <p>[,<p>…]] [--project|--user] [--dest <d>]— persist defaults inforgent.config.jsonso future commands don't need the flags.forgent registry list | add <name> <url> [--default] [--force] | remove <name> | set-default <name>— manage named registries persisted inforgent.config.json. See Multi-registry.forgent validate-registry— load and validate the registry manifest (fail-fast for CI). Honors--registry.forgent verify [--provider <p>[,<p>…]] [--dest <d>]— re-hash every install recorded inforgent.lock.jsonand report any drift. Exits 1 on FAIL, or when no install matches the filters. No network.forgent hash-files [--registry <path>]— walk a local registry, compare each manifestsha256against the on-disk file, and exit 1 on any MISMATCH or MISSING entry. Local-only utility for registry authors keepingsha256fields in sync. HTTP registries are rejected.forgent validate-skill <name>— read eachskill:example.jsonfile declared by the skill, fetch its$schema(when present), and validate. Hand-rolled minimal validator coverstype,required,properties,additionalProperties:false,enum,pattern,minLength,minimum,items, and local$ref(#/$defs/...). Unknown keywords emit oneWARNand are skipped. Examples without$schemaare skipped (info, not failure).forgent doctor— diagnose the local install: Node version, OS/arch, provider(s), install dir writability, registry reachability; warns about legacy single-file providers.
Flags
--provider <names>— one provider or a comma list (agents,claude). Required foradd/removeunless persisted viaforgent.config.jsonor theFORGENT_PROVIDERenv var. Onverify, narrows the check.--project/--user— install inside the project (agentsdefault) or in your home directory (claudedefault). The single-file providers only support--user.--registry <url|path>— override the registry source. Accepts an HTTPS URL (e.g. your own GitHub raw URL) or a local filesystem path. Default: the bundled community registry hosted on GitHub.--dest <path>— override the install directory, one provider at a time (otherwise:FORGENT_INSTALL_DIR,forgent.config.json, then the provider's folder for the scope). Onverify, narrows the check to installs in that directory.--force— overwrite an existing install onadd, or local edits onupdate.--yes,-y— install skills that ship scripts without asking (add,update).--all— onshow, print every file.--dry-run— print what would happen, write nothing.--strict-sha256— (default since 1.0) refuse to install any file whose manifest entry omits a sha256. Same asFORGENT_STRICT_SHA256=1. Kept as an explicit no-op for scripts that want to pin the behaviour.--no-strict-sha256— opt out of strict mode: install with a one-timeWARNper skill when the manifest omits a sha256. Same asFORGENT_STRICT_SHA256=0.
Resolution order
For provider: --provider flag → FORGENT_PROVIDER env → forgent.config.json → error.
For install dir: --dest flag → FORGENT_INSTALL_DIR env → forgent.config.json installDir → the provider's folder for the scope (--project / --user → forgent.config.json scope → the provider's default scope).
For registry: --registry flag (configured name or raw URL/path) → FORGENT_REGISTRY env (same) → forgent.config.json defaultRegistry (by name) → built-in default (the Skill Issue course registry). See Multi-registry.
The registry
The built-in default registry is the private registry of the Skill Issue course
(eXalt): git+https://gitlab.com/skill-issue-formation/agent-skill.git, read with
the deploy token the course hands out (see Private registry over git).
Outside the course, point forgent at your own registry with --registry or
forgent registry add <name> <url> --default.
For an HTTP(S) registry, forgent fetches <base>/registry.json for the manifest,
then each declared skill file at <base>/skills/<name>/<file>.
Manifest shape
{
"$schema": "https://raw.githubusercontent.com/PrincyExaltIT/forgent/master/schema/registry.schema.json",
"name": "default",
"version": "0.1.0",
"items": [
{
"name": "angular-review",
"description": "Multi-reviewer Angular code audit on the current branch or a specified diff.",
"tags": ["angular", "code-review"],
"files": [
{ "path": "SKILL.md", "type": "skill:main" },
{ "path": "ORCHESTRATION.md", "type": "skill:doc" }
]
}
]
}Top-level name and version (semver) are required. Paths in files[].path
are relative to <base>/skills/<item.name>/. files[].type is optional and,
when present, one of skill:main, skill:doc, skill:codex, skill:copilot,
skill:example, skill:reference, skill:template, and since 1.1
skill:script, skill:asset, skill:config, skill:eval — the rest of an
Agent Skills folder. The full JSON Schema is at
schema/registry.schema.json — point your
editor at it for autocomplete and validation. The shape is intentionally close
to shadcn/ui's registry schema
so concepts transfer. Run forgent validate-registry --registry <url|path>
to fail-fast a manifest in CI.
Host your own
Any HTTPS URL that serves registry.json and the corresponding
skills/<name>/<file> paths works as a registry. Point forgent at it:
npx forgent add --provider claude my-skill \
--registry https://your-domain.com/registryA local filesystem path also works — useful while authoring a registry locally:
npx forgent --registry ./path/to/registry listPrivate registry over git (1.3+)
A registry can also be a git repository, private or not: prefix its clone URL
with git+, and optionally pin a branch, tag or commit after #.
# once, in the project: writes forgent.config.json, with no credentials in it
forgent registry add team git+https://gitlab.com/my-group/agent-skill.git --default
# then the usual commands, unchanged
forgent add --provider agents --project angular-review
forgent outdated
forgent update
# pin a tag (or a branch, or a commit)
forgent add --registry "git+https://gitlab.com/my-group/agent-skill.git#v0.8.1" angular-reviewforgent fetches the repository with git (shallow, into its cache: %LOCALAPPDATA%\forgent\cache
on Windows, $XDG_CACHE_HOME/forgent or ~/.cache/forgent elsewhere, or FORGENT_CACHE_DIR),
then installs the files the manifest lists, each checked against its sha256, byte for byte
(no line-ending conversion). The lockfile records git+<url>#<commit>: portable across the
team, and it says exactly which registry commit each install came from.
Authentication is git's:
- On a workstation, let git's credential helper store your username and token once: clone the registry repository one time and answer the prompt; Git Credential Manager keeps them in the system vault.
- In CI (or without a credential helper), set
FORGENT_GIT_USERandFORGENT_GIT_TOKEN. forgent hands them to git through an inline credential helper that reads the environment, so the token never appears in a command line. With a GitLab deploy token, the user is the token'sgitlab+deploy-token-…name; with a personal or project token, any user works (oauth2by default).
Credentials are refused in the URL itself (https://user:token@…): the URL ends up in
forgent.config.json and forgent.lock.json, which are meant to be committed. Git
registries need git on PATH.
Multi-registry
You can persist multiple named registries in forgent.config.json and mark
one as the default for this directory:
# add a registry under a friendly name
npx forgent registry add official \
https://registry.example.com/forgent/ \
--default
# add an internal one alongside
npx forgent registry add my-internal https://internal.corp/forgent-registry/
# inspect (the * marks the default)
npx forgent registry list
# * official https://registry.example.com/forgent/
# my-internal https://internal.corp/forgent-registry/
# switch the default
npx forgent registry set-default my-internal
# drop one
npx forgent registry remove my-internalforgent.config.json after the two add calls:
{
"provider": "claude",
"registries": [
{ "name": "official", "url": "https://registry.example.com/forgent/" },
{ "name": "my-internal", "url": "https://internal.corp/forgent-registry/" }
],
"defaultRegistry": "official"
}--registry <value> and FORGENT_REGISTRY both accept a configured name
in addition to a raw URL or path. The full resolution order is:
--registry <value>— name match in config, else literal URL,git+URL or path.FORGENT_REGISTRYenv — same.forgent.config.jsondefaultRegistry(by name).- Built-in default: the Skill Issue course registry.
Use --force on registry add to overwrite an existing entry. --default
on registry add makes the new entry the default in one step.
Contribute a skill
Skills of the Skill Issue course go through a merge request on its private
registry, gitlab.com/skill-issue-formation/agent-skill. For your own skills,
host your own registry (see Host your own).
Tests
npm testUses Node's built-in test runner (node:test) — no third-party deps. Covers
each provider adapter's install/remove/conflict/force/dry-run semantics, the
provider and install-dir resolution order, end-to-end CLI invocations against
the test fixture at test/fixtures/registry/, and end-to-end HTTP fetches against a local server.
What this is not
- Not a runtime. After
add, the CLI is uninvolved. Your agent reads the installed file directly. - Not a frontmatter translator. The registry's frontmatter is Claude-shaped; you adjust per provider after install.
- Not a full package manager. There is a lockfile and exact-version pinning, but no semver range resolution, no transitive deps, no
updatecommand. To pull a newer version: re-runadd --force(it will overwrite your local edits).
Stability
forgent ≥ 1.0 follows semver. The public API is:
- the CLI flag surface (
forgent --help), - the registry manifest schema (
schema/registry.schema.json), - the lockfile shape (
forgent.lock.json,lockfileVersion: 1), - and the documented exit codes (
0success,1runtime error,2usage error).
Breaking changes to any of the above require a major version bump.
Internal modules under src/*.js are NOT public. If you import them
programmatically, pin to an exact major version — refactors there can land
in a minor.
The default registry location may move without a major bump (it did in 1.4,
from a public GitHub repository to a private GitLab one). Rewriting a $schema
URL or the default registry endpoint is non-breaking; the data shape at the
endpoint is what's covered by semver.
License
MIT
