Maintain MagicNet's shell KAM framework under src/MagicNet/lib/kamfw, including helpers, imports, i18n, logging, install filters, dependency checks, and EXIT handlers.

MITAuto-check passedFrontend & Design

Install Kamfw

skills CLI
$ npx skills add LIghtJUNction/MagicNet --skill kamfw -a claude-code

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

GitHub CLI
$ gh skill install LIghtJUNction/MagicNet kamfw --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/LIghtJUNction/MagicNet.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/kamfw .claude/skills/kamfw && 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
kamfw
GitHub stars
185
Token cost
~1.1k tokens
SKILL.md length
486 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Maintain MagicNet's shell KAM framework under src/MagicNet/lib/kamfw, including helpers, imports, i18n, logging, install filters, dependency checks, and EXIT handlers.

  • Works in 5 steps: install_exclude → install_include (may override an… → install_check preview → …
  • Tasks that involve Internationalization
  • SKILL.md covers Inspect Before Editing, Framework Contract, TTY and Non-Interactive Behavior and Logging, plus 4 more sections
  • Calls rg

What it does

Kamfw is an agent skill from LIghtJUNction/MagicNet. Maintain MagicNet's shell KAM framework under src/MagicNet/lib/kamfw, including helpers, imports, i18n, logging, install filters, dependency checks, and EXIT handlers.

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

It sits in Frontend & Design, covering Internationalization. The repository describes itself as: Consciously set all groups to block. The licence is MIT.

When your agent uses it

  • Tasks that involve Internationalization

Example prompts

  • “/kamfw”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. install_exclude
  2. install_include (may override an exclusion)
  3. install_check preview
  4. interactive confirmation where applicable
  5. install

What it can do on your machine

Read from SKILL.md and the folder at commit e558026. 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:

    • rg

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

  • Network

    No URLs in SKILL.md.

    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

Kamfw loads about 1.1k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 486 words of instructions outside code blocks.

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

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 LIghtJUNction/MagicNet at commit e558026, republished under its MIT licence (© LIghtJUNction). 486 words, ~1,060 tokens.

Download SKILL.mdSave it as .claude/skills/kamfw/SKILL.md (or your agent's skills folder).
name
kamfw
description
Maintain MagicNet's shell KAM framework under src/MagicNet/lib/kamfw, including helpers, imports, i18n, logging, install filters, dependency checks, and EXIT handlers.

MagicNet KAM Framework

Use this skill only inside the MagicNet repository when changing src/MagicNet/lib/kamfw or callers that depend on it.

Inspect Before Editing

Search the framework and its callers before adding a helper:

bash
rg '<symbol-or-behavior>' src/MagicNet/lib/kamfw src/MagicNet

Prefer an existing helper. Put a reusable helper in src/MagicNet/lib/kamfw/<name>.sh (or the established __name__.sh internal form) and load it through import; do not bury shared helpers in customize.sh or hooks.

Framework Contract

  • Use the framework's print, info, warn, error, debug, and success wrappers for user-visible output. Use raw printf only for formatting that wrappers cannot express, and explain why.
  • Register all user-visible text with set_i18n; retrieve it through i18n/t. List new or changed keys in the PR.
  • Check optional commands with command -v. Missing required dependencies must fail fast through abort with an i18n message.
  • Verify downloaded content with at least SHA-256; add signature verification when the trust model requires it. Never commit keys or secrets.
  • Preserve user configuration by default. Interactive replacement needs explicit confirmation; non-interactive input uses the safe path (skip or create an update file).
  • Do not rewrite system paths, start durable background processes, or silently downgrade behavior without explicit design and user-visible reporting.
  • Keep functions small, single-purpose, and documented with rationale rather than narration.

TTY and Non-Interactive Behavior

There is no framework is_ci helper. Use the repository's existing TTY conventions instead of inventing one:

sh
if [ -t 0 ] || [ -t 1 ]; then
    # interactive-capable path
else
    # safe non-interactive default
fi

Follow the owning helper when it uses stricter stdin-only checks such as [ -t 0 ].

Logging

logging.sh owns log behavior:

  • KAM_LOGLEVEL / set_loglevel: ERROR, WARN, INFO, or DEBUG (default INFO)
  • KAM_DEBUG=1: compatibility alias for debug logging
  • KAM_LOGFILE: default $MODDIR/kam.log
  • KAM_LOG_ROTATE_SIZE: accepts K/M/G suffixes

Use wrappers for level filtering and console output. Direct log remains a file-writing compatibility API.

Show full SKILL.md (209 more words)Show less

EXIT Handlers

__at_exit__.sh exposes:

  • at_exit_add, at_exit_remove, at_exit_list, at_exit_clear
  • at_exit_register_trap, at_exit_unregister_trap
  • __at_exit_install_from_filters

Current behavior is important:

  • handlers run in registration order in the current shell via eval;
  • one handler failure is logged and does not stop the remaining handlers;
  • registration installs trap "__at_exit_master_handler" EXIT and does not preserve a pre-existing EXIT trap.

Do not describe handlers as subshell-isolated. Inspect compatibility before composing this helper with another EXIT trap.

Install Filters

Apply filters in this order:

  1. install_exclude
  2. install_include (may override an exclusion)
  3. install_check preview
  4. interactive confirmation where applicable
  5. install

Both source-directory (KAM_MODULE_ROOT) and ZIP (ZIPFILE) flows are supported. Check unzip/zipinfo before ZIP operations and abort with an i18n message when absent.

Verification

For every change:

  1. Exercise the changed helper through the same import path used in production.
  2. Test both interactive and non-interactive branches.
  3. Cover dependency-missing and failure paths.
  4. For install filters, test directory and ZIP inputs plus include-overrides-exclude behavior.
  5. For EXIT handlers, verify order, failure continuation, and interaction with existing traps.
  6. Run the repository's relevant shell/static tests and record exact commands and results.

PR Checklist

Include:

  • what changed and why;
  • new/changed i18n keys;
  • compatibility and security risks;
  • interactive and non-interactive verification;
  • dependency, network-integrity, logging, install, or EXIT-handler checks as applicable.

© LIghtJUNction, 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 .agents/skills/kamfw of LIghtJUNction/MagicNet.

Open the folder on GitHubat commit e558026

Compare with similar skills

Kamfw 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.

Kamfw compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kamfw this skillLIghtJUNction/MagicNet185—~1.1kAutomated safety check: PassMIT
Impeccablebestofjs/bestofjs3.1k27 repos~2.6kAutomated safety check: PassMIT
Chatbox i18n Translatorchatboxai/chatbox42k—~508Automated safety check: PassGPL-3.0
Internationalization Workflow with i18niOfficeAI/AionUi33k1 repos~1.9kAutomated safety check: PassApache-2.0
Enforce Rules For I18nmoeru-ai/airi50k—~1.5kAutomated safety check: PassMIT
Claude Desktop Chinese Localizationjavaht/claude-desktop-zh-cn7.5k—~1.6kAutomated safety check: PassMIT

Similar skills

  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 27 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Chatbox i18n Translator

    chatboxai/chatbox

    Translates new or changed i18n keys from a Chatbox Pro diff, staged changes or a commit range, writing the locale JSON files directly with a built-in glossary.

    42k GitHub stars~508 tokensUpdated 13 days ago
    Frontend & DesignAuto-check passed
  • Standards for keeping all user-facing text translatable: read the i18n config first, use namespaced keys, reuse shared strings and follow the key naming rules.

    33k GitHub starsUsed in 1 repo~1.9k tokens
    Frontend & DesignAuto-check passed
  • Review pending AIRI translations on Crowdin in a batch, then sync them into the repository.

    50k GitHub stars~1.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Claude Desktop Chinese Localization

    javaht/claude-desktop-zh-cn

    Adds missing Simplified and Traditional Chinese translations to the Claude Desktop Chinese patch across three layers, then checks how many mappings actually hit.

    7.5k GitHub stars~1.6k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Taro UI Guide

    jd-opensource/taro-ui

    Guides installing, configuring, styling and using taro-ui (At* components) in Taro apps for WeChat, Alipay, H5 and React Native.

    4.7k GitHub stars~1.3k tokensUpdated 12 days ago
    Frontend & DesignAuto-check passed

More from LIghtJUNction/MagicNet

  • Magicnet Device Debugging

    LIghtJUNction/MagicNet

    Debug and verify MagicNet on a real Android root device. An agent skill from LIghtJUNction/MagicNet.

    185 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check: notes

Questions about Kamfw

What does Kamfw do?

Maintain MagicNet's shell KAM framework under src/MagicNet/lib/kamfw, including helpers, imports, i18n, logging, install filters, dependency checks, and EXIT handlers. Kamfw is an agent skill from LIghtJUNction/MagicNet. Maintain MagicNet's shell KAM framework under src/MagicNet/lib/kamfw, including helpers, imports, i18n, logging, install filters, dependency checks, and EXIT handlers.

When should I use Kamfw?

Kamfw fits situations like: tasks that involve Internationalization.

How do I install Kamfw in Claude Code?

Run `npx skills add LIghtJUNction/MagicNet --skill kamfw -a claude-code`. Or copy the skill folder (.agents/skills/kamfw in LIghtJUNction/MagicNet) into .claude/skills/kamfw in your project. Claude Code loads it when a task matches its description.

How do I install Kamfw in Codex?

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

Can I use Kamfw 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 LIghtJUNction/MagicNet --skill kamfw -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kamfw, .gemini/skills/kamfw, .github/skills/kamfw and .opencode/skills/kamfw in your project.

What does Kamfw need to run?

Going by SKILL.md and its folder, Kamfw needs the command-line tools its instructions call (rg).

Does Kamfw access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Kamfw 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 Kamfw use?

Kamfw 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 Kamfw use?

About 1.1k tokens (SKILL.md is roughly 4.2k 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 Kamfw?

Skills that share tags, products or a category with Kamfw: Impeccable (bestofjs/bestofjs, 3.1k stars), Chatbox i18n Translator (chatboxai/chatbox, 42k stars), Internationalization Workflow with i18n (iOfficeAI/AionUi, 33k stars) and Enforce Rules For I18n (moeru-ai/airi, 50k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kamfw?

LIghtJUNction (a GitHub user) maintains it in LIghtJUNction/MagicNet, which has 185 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 7, 2026.

Source: LIghtJUNction/MagicNet on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.