squirrel-input-method-architecture
Skill by rime
Explains and modifies the Squirrel macOS input method frontend for librime. It helps with input handling, librime sessions, candidate UI, configuration, lifecycle, and installer commands. It is aimed at developers working in this repository.
Install squirrel-input-method-architecture
Built from the published package, never by AI.
git clone --depth 1 https://github.com/rime/squirrel /tmp/squirrel && mkdir -p ~/.claude/skills && cp -r /tmp/squirrel ~/.claude/skills/squirrel-input-method-architectureRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install squirrel-input-method-architecture in Claude Code
git clone --depth 1 https://github.com/rime/squirrel /tmp/squirrel && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/squirrel ~/.gemini/antigravity-cli/skills/squirrel-input-method-architectureAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install squirrel-input-method-architecture in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill gives an AI assistant a map of the Squirrel codebase, a macOS InputMethodKit frontend for librime. It describes the main Swift files, such as the input controller, the application delegate, the candidate panel, and the theme and configuration code. It also explains the startup sequence, the librime setup and finalization rules, and the key event loop from NSEvent to librime and back to the text client.
The skill lists rules the assistant should follow when changing the code. These cover marked text and commit behavior, when to consume or pass on events, and why librime must not be initialized from individual input controllers. It is written for developers who change input handling, candidate window behavior, configuration, or installer and maintenance commands in this repository.
Written from the project's SKILL.md and checked against it.
What it can do
- Repository mapLists the main Swift sources, resources, and bundled librime libraries in the Squirrel project.
- Process startupExplains the command-line maintenance commands and the normal app startup sequence.
- Librime lifecycleDescribes global librime setup, maintenance, settings loading, and shutdown in the app delegate.
- Input update loopWalks through how key and modifier events are handled and passed to librime.
- Marked text rulesSets out how committed text and active composition should reach the macOS text client.
- Candidate panel flowDescribes how cursor geometry and candidate data are used to update the shared candidate panel.
What you need
- macOS
- Xcode project for the Squirrel repository
- librime backend libraries
Try asking
- Walk me through how a key press becomes committed text in Squirrel.
- Where should I add a new macOS key code translation in Squirrel?
- Which rules apply when I change marked text handling in Squirrel?
Good to know
- Describes only this repository's architecture, not a general input method guide.
- The source ends mid-section, so the candidate panel description is incomplete.
- Assumes familiarity with InputMethodKit and librime.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: SKILL.md, action-build.sh, action-changelog.sh, action-install.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.git-blame-ignore-revs1 B -
.gitignore337 B -
.gitmodules257 B -
.periphery.yml91 B -
.swiftlint.yml2 KB
Show all 15 files
-
CHANGELOG.md49 KB -
INSTALL.md5 KB -
LICENSE.txt34 KB -
Makefile6 KB -
README.md3 KB -
SKILL.md24 KB -
action-build.sh385 B -
action-changelog.sh266 B -
action-install.sh1 KB -
cliff.toml1 KB
Alternatives to squirrel-input-method-architecture
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
squirrel-input-method-architecture: common questions
What does the Squirrel input method frontend do?
Squirrel is a macOS InputMethodKit frontend for librime. The skill covers its input handling, candidate UI, configuration, and lifecycle.
When should an assistant use this skill?
The skill says to use it when working on input handling, librime sessions, candidate UI, configuration, lifecycle, installer commands, or backend and frontend coordination in this repository.
Should librime be initialized from each input controller?
No. The source says controllers own sessions and the application delegate owns the backend lifetime.
How do I install squirrel-input-method-architecture?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is squirrel-input-method-architecture free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is squirrel-input-method-architecture safe to use?
It scores 91 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to squirrel-input-method-architecture?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
