SUNAT tax automation for Peru from the terminal. An agent skill from crafter-research/sunat-cli.

MITAuto-check passed

Install Sunat CLI

skills CLI
$ npx skills add crafter-research/sunat-cli --skill sunat-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install crafter-research/sunat-cli sunat-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/crafter-research/sunat-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/sunat-cli .claude/skills/sunat-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sunat-cli
GitHub stars
103
Token cost
~609 tokens
SKILL.md length
226 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

SUNAT tax automation for Peru from the terminal. An agent skill from crafter-research/sunat-cli.

  • The user mentions SUNAT
  • SKILL.md covers Read the manual from the…, Before anything else and What it costs to get wrong
  • Calls npm, brew and npx
  • Recibo por honorarios

What it does

Sunat CLI is an agent skill from crafter-research/sunat-cli. SUNAT tax automation for Peru from the terminal. Use when the user mentions SUNAT, Buzon SOL, RHE, recibo por honorarios, F616, renta anual, F709, declaraciones presentadas, constancias, factura or boleta electronica, CPE, SIRE, padron RUC, tipo de cambio SUNAT, or says emitir recibo, emitir factura, declarar F616, anular comprobante, impuestos Peru. Personas naturales with RUC 10 and empresas with RUC 20. Package @crafter/sunat-cli on npm.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with npm. The repository describes itself as: Agent-first CLI for SUNAT tax automation - gov-tech tool for Peruvian freelancers. The licence is MIT.

When your agent uses it

  • The user mentions SUNAT
  • Recibo por honorarios
  • Declaraciones presentadas
  • Boleta electronica

Example prompts

  • “/sunat-cli”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 0b688ed. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • brew
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sunat CLI loads about 609 tokens when it runs. Until then it costs about 114 tokens; SKILL.md has 226 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~114
When it runs · the whole SKILL.md, loaded when a task matches
~609

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from crafter-research/sunat-cli at commit 0b688ed, republished under its MIT licence (© crafter-research). 226 words, ~609 tokens.

Download SKILL.mdSave it as .claude/skills/sunat-cli/SKILL.md (or your agent's skills folder).
name
sunat-cli
description
SUNAT tax automation for Peru from the terminal. Use when the user mentions SUNAT, Buzon SOL, RHE, recibo por honorarios, F616, renta anual, F709, declaraciones presentadas, constancias, factura or boleta electronica, CPE, SIRE, padron RUC, tipo de cambio SUNAT, or says emitir recibo, emitir factura, declarar F616, anular comprobante, impuestos Peru. Personas naturales with RUC 10 and empresas with RUC 20. Package @crafter/sunat-cli on npm.

sunat-cli

SUNAT tax automation from the terminal, for agents to operate and humans to supervise.

Install: npm install -g @crafter/sunat-cli. Runs on Node, no Bun needed.

Read the manual from the binary, not from here

This file exists so npx skills add crafter-research/sunat-cli finds something at the repository root. It is a pointer, not the guide. The real content ships with the CLI and always matches the version you have installed:

bash
sunat-cli skills get core        # auth, Buzón, RHE, F616, CPE, workflows
sunat-cli skills get schemas     # field specs per command
sunat-cli skills get endpoints   # the SUNAT endpoint behind each command
sunat-cli skills list

Serving docs from the binary is the point: a copy pasted into an agent directory months ago describes a CLI that no longer exists, and nothing tells the reader it drifted.

Before anything else

bash
sunat-cli doctor    # what is installed, what is missing, and the command that fixes it

RHE, F616 and the portal scrapers drive a real browser through agent-browser, a separate binary:

bash
npm install -g agent-browser      # all platforms
brew install agent-browser        # macOS
agent-browser install             # download Chrome, first time only

CPE, SIRE and GRE need a SUNAT certificate and a clave SOL instead.

What it costs to get wrong

Every mutation is graded and the grade is in --help: T0 reads, T1 writes locally, T2 files with SUNAT and needs --yes, T3 is irreversible and needs a single-use intent token. Preview before you file; --dry-run calls the real path.

Production is beta throughout. Never run it blind.

For live RHE emission, the CLI keeps the legal confirmation supervised and then downloads the issued XML and PDF through the same SUNAT session. Read the bundled core and endpoint manuals for the artifact result contract and verification status.

© crafter-research, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/sunat-cli of crafter-research/sunat-cli.

Open the folder on GitHubat commit 0b688ed

Compare with similar skills

Sunat CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sunat CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sunat CLI this skillcrafter-research/sunat-cli103—~609Automated safety check: PassMIT
Defuddlekepano/obsidian-skills49k12 repos~208Automated safety check: PassMIT
Vercel Deploybytedance/deer-flow83k10 repos~797Automated safety check: PassMIT
MCP Server BuildershareAI-lab/learn-claude-code78k5 repos~1.2kAutomated safety check: PassMIT
Knap Markdown Templateskepano/obsidian-skills49k2 repos~986Automated safety check: PassMIT
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.3k1 repos~2.2kAutomated safety check: PassMIT

Similar skills

  • Defuddle

    kepano/obsidian-skills

    Uses the Defuddle CLI to pull clean, readable Markdown, JSON or metadata from web pages, stripping navigation, ads and clutter to save tokens.

    49k GitHub starsUsed in 12 repos~208 tokens
    Knowledge ManagementAuto-check passed
  • Vercel Deploy

    bytedance/deer-flow

    Deploys a project to Vercel with one script and no login, then returns a live preview URL and a claim link for moving the deployment into your own Vercel account.

    83k GitHub starsUsed in 10 repos~797 tokens
    DevOps & CloudAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Knap Markdown Templates

    kepano/obsidian-skills

    Renders Markdown notes from Knap templates and JSON data on the command line, including notes built from Defuddle web page output.

    49k GitHub starsUsed in 2 repos~986 tokens
    Documents & OfficeAuto-check passed
  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub starsUsed in 1 repo~2.2k tokens
    DevelopmentAuto-check passed
  • Nx Run Tasks

    nomcopter/react-mosaic

    Helps with running tasks in an Nx workspace. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 8 repos~613 tokens
    DevelopmentAuto-check passed

More from crafter-research/sunat-cli

  • Sunat CLI

    crafter-research/sunat-cli

    SUNAT tax automation CLI for Peru. An agent skill from crafter-research/sunat-cli.

    103 GitHub stars~5.7k tokensUpdated 23 days ago
    Auto-check passed

Works with

Questions about Sunat CLI

What does Sunat CLI do?

SUNAT tax automation for Peru from the terminal. An agent skill from crafter-research/sunat-cli. Sunat CLI is an agent skill from crafter-research/sunat-cli. SUNAT tax automation for Peru from the terminal.

When should I use Sunat CLI?

Sunat CLI fits situations like: the user mentions SUNAT; recibo por honorarios; declaraciones presentadas; boleta electronica.

How do I install Sunat CLI in Claude Code?

Run `npx skills add crafter-research/sunat-cli --skill sunat-cli -a claude-code`. Or copy the skill folder (skills/sunat-cli in crafter-research/sunat-cli) into .claude/skills/sunat-cli in your project. Claude Code loads it when a task matches its description.

How do I install Sunat CLI in Codex?

Run `npx skills add crafter-research/sunat-cli --skill sunat-cli -a codex`. Or copy the skill folder (skills/sunat-cli in crafter-research/sunat-cli) into .agents/skills/sunat-cli in your project. Codex loads it when a task matches its description.

Can I use Sunat CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add crafter-research/sunat-cli --skill sunat-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sunat-cli, .gemini/skills/sunat-cli, .github/skills/sunat-cli and .opencode/skills/sunat-cli in your project.

What does Sunat CLI need to run?

Going by SKILL.md and its folder, Sunat CLI needs the command-line tools its instructions call (npm, brew and npx). Our summary lists: Node.js.

Does Sunat CLI access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Sunat CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sunat CLI use?

Sunat CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sunat CLI use?

About 609 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sunat CLI?

Skills that share tags, products or a category with Sunat CLI: Defuddle (kepano/obsidian-skills, 49k stars), Vercel Deploy (bytedance/deer-flow, 83k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars) and Knap Markdown Templates (kepano/obsidian-skills, 49k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sunat CLI?

crafter-research (a GitHub organization) maintains it in crafter-research/sunat-cli, which has 103 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 15, 2026.

Source: crafter-research/sunat-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.