Skip to content
Back to skills

Docs

ASecurity

oh-my-patent provides plugin and portable Skill installation modes. Plugin mode is the default, with **14 agents, 6 skills and 9 commands**. Node.js >=22 is required. For installation into a host workspace, use the [quick start](../README.md#quick-start). The sections below cover Skills CLI, ZIP and npm packages, source builds and lifecycle operations. See [compatibility](compatibility.md) for host support and operating constraints. Acceptance provenance is recorded in the [verification ledge...

  • 115 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 5, 2026
ai-agentsnodegitbackend

Works with

  • claude code
  • cli
  • mcp

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 18 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add illusionaireal/oh-my-patent --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/illusionaireal-docs/badge)](https://www.skillsdirectory.com/skills/illusionaireal-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Installation modes

oh-my-patent provides plugin and portable Skill installation modes. Plugin mode
is the default, with **14 agents, 6 skills and 9 commands**. Node.js >=22 is required.

For installation into a host workspace, use the [quick start](../README.md#quick-start).
The sections below cover Skills CLI, ZIP and npm packages, source builds and lifecycle operations.

See [compatibility](compatibility.md) for host support and operating constraints.
Acceptance provenance is recorded in the [verification ledger](../specs/002-skill-first/verification.md).

Both modes support Claude Code, Codex and OpenCode. In the generic commands below,
replace `<host>` with the value for your selected host and `<workspace>` with its
workspace path before running them.

| Host | Skills CLI `--agent` / project CLI `--tool` |
| --- | --- |
| Claude Code | `claude-code` |
| Codex | `codex` |
| OpenCode | `opencode` |

## Skills CLI installation

The [Skills CLI](https://github.com/vercel-labs/skills) installs the portable package
without installing the oh-my-patent CLI. It requires Git and Node.js >=22.20.
Run this in your patent workspace:

```sh
npx skills add illusionaireal/oh-my-patent
```

The installer detects hosts and offers selection when needed. Select Claude Code,
Codex or OpenCode, Project scope and Copy to install in the current workspace. When
launched from a coding agent, the installer can select that agent without prompting.
To choose a host explicitly, append `--agent <host>` using the table above.

The shorthand discovers the built portable package under `skills/oh-my-patent`.
Append `--skill oh-my-patent --copy` to select it and copy real files explicitly;
`--global` selects the host's user-level scope. Keep the complete Skill directory.

The shorthand follows the repository's default branch, currently `master`, whereas
`npx oh-my-patent@latest` uses the latest published npm package. To pin a repository
revision, replace `<ref>` below with an existing tag or commit:

```sh
npx skills add "https://github.com/illusionaireal/oh-my-patent/tree/<ref>/skills/oh-my-patent" --skill oh-my-patent --copy
```

For this installation method, use the Skills CLI for updates and removal.
For removal, replace `<host>` with the same host value used at installation:

```sh
npx skills@latest update oh-my-patent
npx skills@latest remove oh-my-patent --agent <host>
```

The oh-my-patent CLI's ownership records, backups and rollback apply to its own
installations. Choose one manager for each installed copy.

## ZIP installation

Download the [repository ZIP](https://github.com/illusionaireal/oh-my-patent/archive/refs/heads/master.zip),
extract it and copy its complete `skills/oh-my-patent` directory into one host
location below. This checked-in package already contains the runtime.

| Host | Destination in the workspace |
| --- | --- |
| Claude Code | `.claude/skills/oh-my-patent` |
| Codex | `.agents/skills/oh-my-patent` |
| OpenCode | `.agents/skills/oh-my-patent` |

Keep all files together, open the workspace in the host and select `oh-my-patent`.
Back up customizations before replacing a manually installed directory; delete that
directory to remove it. A standalone ZIP produced by `npm run package:skill` contains
an `oh-my-patent` folder with the same resources. Repository ZIP downloads and
standalone build ZIPs have different outer directory layouts.

## Plugin installation with npm or npx

For a persistent CLI on your PATH, use npm and then install into your workspace:

```sh
npm install -g oh-my-patent
oh-my-patent adapt install
```

Plugin mode is the default, and omitting `--tool` installs all three adapters in
the current workspace. Add `--tool <host>` to select one host. Global npm installation
alone does not install workspace configuration; the explicit second step does that.

For installation without a global CLI, use:

```sh
npx oh-my-patent@latest adapt install
```

The installer still writes persistent workspace files. npx supplies the CLI for
that invocation; use `npx oh-my-patent@latest <command>` for later CLI operations,
or install the CLI globally. See the [usage guide](usage-en.md) for available commands.

## Plugin mode from source

From a source checkout:

```sh
npm ci
npm run build
node dist/cli.js adapt install --tool <host> --workspace-dir <workspace>
```

The command installs the multi-entry plugin workflow. `--mode plugin` is an
explicit equivalent; `--legacy` remains a compatibility alias. Plugin adapters support
Claude Code, Codex and OpenCode. Omitting `--tool` selects all adapters.
Use the host-specific Archimedes entry and commands described in the
[usage guide](usage-en.md). Plugin prompts are in `src/agents` and
`src/skills`; portable runtime instructions have separate source overrides.

```sh
node dist/cli.js adapt uninstall --mode plugin --tool <host> --workspace-dir <workspace>
```

Plugin uninstall and `--prune` preserve the optional portable Skill. `--dry-run` is a
Skill-mode option; plugin mode rejects it before writing rather than implying a preview.

## Skill mode from source

Build the checkout as above, then select one host and inspect the dry-run:

```sh
node dist/cli.js adapt install --mode skill --tool <host> --workspace-dir <workspace> --dry-run
node dist/cli.js adapt install --mode skill --tool <host> --workspace-dir <workspace>
```

Skill mode requires an explicit `--tool`. It adds one complete portable package,
with bundled role resources and runtime. It leaves plugin agents, skills,
commands, customizations, AGENTS.md, CLAUDE.md, MCP and marketplace settings intact.
It does not migrate existing project state or require uninstalling the plugin.

Claude Code uses `.claude/skills/oh-my-patent`. Codex and OpenCode use one shared
`.agents/skills/oh-my-patent` copy with reference-counted ownership. The six candidate
host locations are in [distribution/targets.json](../distribution/targets.json).
Do not duplicate the portable Skill across shared and host-specific discovery roots.
These duplicate checks concern copies of the portable Skill, not the plugin.

Choose the plugin or Skill entry when starting work. Filesystem coexistence is covered
by automated tests; host discovery and activation of both entry types together are
unverified. The Codex plugin includes an overview Skill named `oh-my-patent`,
so resolution of that name alongside the portable entry needs host acceptance.
Use a separate workspace when evaluating the Skill independently.

Alternatively extract the complete `oh-my-patent` folder from the generated Skill ZIP
into the selected host's skill directory. Keep references/assets/scripts together.
The copied package needs no repository, global CLI, node_modules, provider SDK or
remote renderer. `node <installed-skill>/scripts/runtime.mjs --doctor` checks only
the local runtime, not host discovery. The format follows the
[Agent Skills specification](https://agentskills.io/specification).

Skills CLI installation checks are recorded in [compatibility](compatibility.md#skills-cli-installation-checks).
Native marketplace submission and activation are outside those checks.
Ancestor/user portable scopes are inspected, never rewritten. Filesystem checks are
not proof of host deduplication.

## Standalone Skill package installation

This method is for users who want the portable package without installing the CLI.
Downloading the npm package and registering it with a host are separate steps.
Use a temporary directory outside your patent workspace to obtain the package:

```sh
npm pack oh-my-patent-skill --ignore-scripts
```

Extract the resulting `.tgz` archive with your archive tool. Copy its complete
`package` directory to one destination in your patent workspace:

| Host | Destination |
| --- | --- |
| Claude Code | `.claude/skills/oh-my-patent` |
| Codex | `.agents/skills/oh-my-patent` |
| OpenCode | `.agents/skills/oh-my-patent` |

Open that workspace in the host and select `oh-my-patent`. Keep all references,
assets and scripts together. Before replacing a manually installed copy, back up
any customizations; remove that copy manually when uninstalling. CLI-managed backups,
updates and rollback apply to installations made through `adapt install`.

For troubleshooting only, check the copied runtime:

```sh
node <installed-skill>/scripts/runtime.mjs --doctor
```

The check diagnoses the local runtime; selecting the Skill in the host completes
the activation step. For a reproducible download, use `oh-my-patent-skill@<version>` in the `npm pack` command.

## Skill updates, removal and rollback with the project CLI

Re-run install with `--mode skill` to update only that Skill. Modified Skill files
cause a conflict before mutation; modified plugin files do not block installation.
Shared removal retains the copy while another selected host owns it.

```sh
node dist/cli.js adapt uninstall --mode skill --tool <host> --workspace-dir <workspace> --dry-run
node dist/cli.js adapt uninstall --mode skill --tool <host> --workspace-dir <workspace>
node dist/cli.js adapt rollback --mode skill --backup <id> --workspace-dir <workspace>
```

Install/uninstall returns `backup_id`. Rollback restores exact previous bytes unless
later user edits conflict. Backups live outside discovery roots under
`.oh-my-patent/backups/` as JSON. An interrupted installation blocks new changes until
its backup is rolled back. If a process left `.oh-my-patent/install.lock`, inspect its
owner first. `adapt recover-lock --mode skill --owner-token <token> --workspace-dir
<workspace>` requires a verified dead owner on this host. Recovery never uses lock
age; rollback shares the lock and preserves later user edits.

Plugin generation defaults to `plugins/<tool>/` (custom output: `<dir>/<tool>/`).
Skill generation requires `--mode skill` and defaults to `skill-installations/<tool>/`
(custom `--output` is the exact destination). Generated outputs do not overwrite
one another.

## Optional project migration

Installing either mode leaves project state unchanged. Existing plugin projects can
continue using their CLI path functions. To use the versioned Skill runtime
with an existing project, explicitly dry-run and review `project.migrate` before
migration. Migrated projects use the bundled JSON runtime or CLI runtime bridge
(`oh-my-patent runtime --input request.json`); old writers reject their schema.
Unmodified older binaries cannot be remotely constrained. Do not mix runtimes in a
migrated project or remove version fields to bypass a guard.

## Skill confidentiality and figures

Shared runtime rendering has no public PlantUML fallback. A URL alone does not authorize
disclosure. Its remote calls require exact content/recipient/purpose consent and a
local audit; redirects and automatic retries are disabled. Host search and image tools
without verified interception remain instruction-only; Skill confidential mode disables
them. Model-provider processing is a separate boundary, not fully local processing.

Direct SVG needs no remote renderer. Define a figure spec, validate self-contained SVG
before preview, review technical and visual consistency, then register current input
hashes. Changes invalidate prior review. Image generation remains optional and unverified.
These portable instructions do not replace the plugin's role prompts.

## Maintainer checks

```sh
npm run lint
npm test
npm run package:skill
npm run verify:artifacts
```

The builder emits a Skill ZIP, the plugin npm tarball, an independent
`oh-my-patent-skill` npm tarball, a release manifest and SHA256SUMS. CI checks deterministic generated Skill files and
actual packed artifacts. Publication uses the verified tarball with `--ignore-scripts`;
stable versions use npm's `latest` tag; prereleases use `next`.
Verification scripts do not publish anything.


## Independent npm Skill publication

The **Publish Release** workflow (`.github/workflows/npm-publish.yml`) automatically
publishes both npm packages and attaches the verified archives when a GitHub Release
is published. The **Publish standalone Skill** workflow
(`.github/workflows/npm-publish-skill.yml`) is a manual Skill-only supplement.
It publishes only `oh-my-patent-skill`, built from the generated portable package.
The standalone archive has its own package.json/README and the same generated Skill
resources; it contains no plugin CLI/source tree or runtime npm dependencies.

The independent package inherits the version in the repository's `package.json`.
Its metadata is in `distribution/skill-package.json`. Stable releases use `latest`;
prereleases use `next`. Stable publication checks first-wave host installation and
workflow verification in `distribution/targets.json`; the 0.4.0 acceptance source is
the maintainer's confirmation. Publication does not mark a host verified or submit a marketplace entry.

Open GitHub Actions → **Publish
standalone Skill** → **Run workflow**, select the intended version tag, and leave
`dry_run` enabled for a trial. Branches are permitted only for dry-runs. Disable it
to publish the verified tarball. The workflow
reuses the existing `PRE` environment and `NPM_TOKEN` secret; that token must be
allowed to create/publish `oh-my-patent-skill`. Registry ownership and actual
publication are not established by a dry-run.

The build job checks/tests/packages the selected commit and uploads immutable
artifacts. The publish job verifies commit identity, selected package, dist-tag and
SHA-256, then publishes only the standalone tarball with `--ignore-scripts`.
It does not rebuild the package or trigger the plugin publication workflow.

Local checks (the final command performs an npm dry-run):

```sh
npm run package:skill
npm run verify:artifacts
npm run publish:skill -- --dry-run
```

## Automatic Release publication

For new versions, merge the release changes after CI passes, create a tag matching
`package.json` (`VERSION` or `vVERSION`), then publish the GitHub Release. The
`release.published` event also covers publication of a draft Release.

**Publish Release** builds/tests/packages once. Three independent jobs consume that
same verified artifact: plugin npm publication, standalone Skill npm publication,
and Release attachment upload. Each job depends only on the successful build, so
one failed destination does not block the other two. Use **Re-run failed jobs** to
retry a failed destination with the original artifacts; retention is seven days.

Formal runs require a matching version tag, clean artifacts, and matching commit/tag
provenance in `release-manifest.json`. Both npm jobs use the existing `PRE`
environment and `NPM_TOKEN`; the token must publish both package names. Only the
attachment job receives `contents: write` and uses GitHub's built-in token, so
manual PAT configuration is not needed for automatic attachment upload.

The Release receives:

- `oh-my-patent-skill-VERSION.zip`
- `oh-my-patent-VERSION.tgz`
- `oh-my-patent-skill-VERSION.tgz`
- `SHA256SUMS`
- `release-manifest.json`

An existing npm version is skipped only if its published archive integrity matches
the selected verified tarball. Skips do not move `latest`/`next`. Existing Release
files are downloaded and compared before uploading any missing files; different
bytes fail without replacement. Registry authentication/network failures also fail
instead of being treated as unpublished versions.

Manual **Publish Release** runs default to `dry_run: true`: npm uses `--dry-run` and
an isolated offline cache, and the attachment job is skipped. This checks local
archives even when the version already exists in npm; it does not test registry
authentication. Disable dry-run only on a version tag with an
existing GitHub Release. The Skill-only workflow uses the same retry checks and
per-package concurrency group as the automatic Skill publication job.

Local smoke checks after packaging (no real publication):

```sh
npm run publish:release -- plugin --dry-run
npm run publish:skill -- --dry-run
npm run publish:release -- assets --dry-run
```

The already published [0.4.0 Release](releases/0.4.0.md) uses the tag `0.4.0`.
Its original tag is not moved; this automation applies to new release tags that
contain the updated workflows and scripts.

### Figure capability and timed default selection

Plugin and Skill use the same figure.plan / figure.offer / figure.select interface.
The installed plugin checker accepts --runtime --input request.json, independent of npm
cache or global CLI. New versioned projects use project.create; existing legacy projects
need explicit project.migrate dry-run/confirmation before these mutations. Once migrated,
all workflow/path/figure writes use the shared runtime, not legacy CLI writers.

The sentinel saves actual host observations and each figure stores its selected backend.
Timed hosts offer a 30-second default; hosts without timed interaction default immediately.
System defaults use available local tools and never authorize remote disclosure/spending.
See [sentinel](sentinel.md) and the packaged runtime/figure references for the protocol.

Files in this skill

  • README-en.md2.1 KB
  • README.md1.8 KB
  • RETRIEVAL_DEV_PLAN.md6.8 KB
  • RETRIEVAL_PRD.md13.2 KB
  • RETRIEVAL_SPEC.md27.6 KB
  • agents-en.md5.5 KB
  • agents.md4.9 KB
  • architecture-en.md4.3 KB
  • architecture.md3.8 KB
  • compatibility.md2.2 KB
  • images/01-orchestration.drawio13.2 KB
  • images/02-adversarial.drawio8.4 KB
  • images/03-parallel-eval.drawio9 KB
  • images/04-qa-loop.drawio10.3 KB
  • images/05-path-dag.drawio9.4 KB
  • images/ai-gen/prompts.md16.5 KB
  • images/ai-gen/workflow-prompt.md10.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.