Agent skill

Code Patterns

by bkywksj in bkywksj/knowledge-base

代码模式与最佳实践技能,提供 Tauri 项目中常用的设计模式和编码规范. An agent skill from bkywksj/knowledge-base.

Custom licenceAuto-check passed

Install Code Patterns

skills CLI
$ npx skills add bkywksj/knowledge-base --skill code-patterns -a claude-code

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

GitHub CLI
$ gh skill install bkywksj/knowledge-base code-patterns --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/bkywksj/knowledge-base.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/code-patterns .claude/skills/code-patterns && 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
code-patterns
GitHub stars
330
Token cost
~3.3k tokens
SKILL.md length
184 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
Custom licence

At a glance

代码模式与最佳实践技能,提供 Tauri 项目中常用的设计模式和编码规范. An agent skill from bkywksj/knowledge-base.

  • Works in 8 steps: Database 层模式(数据访问) → Service 层模式(业务逻辑) → Command 层模式(IPC 接口) → …
  • SKILL.md covers 概述, Rust 后端模式(三层架构), React 前端模式 and 命名约定, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Code Patterns is an agent skill from bkywksj/knowledge-base. 代码模式与最佳实践技能,提供 Tauri 项目中常用的设计模式和编码规范。 触发场景: - 用户需要了解项目的编码规范 - 用户需要应用设计模式解决问题 - 用户需要重构代码以符合最佳实践 触发词:设计模式、编码规范、最佳实践、代码风格、重构

Its SKILL.md is about 3.3k 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 Tauri. The repository describes itself as: 本地优先的知识库桌面应用。Markdown 编辑器 + 全文搜索(FTS5) + 双向链接 / 知识图谱;多端同步(WebDAV / S3 / 同步盘,单笔记粒度增量 + 自动双向调度,含整库 ZIP 备份);AI 问答与智能规划(OpenAI 兼容 / Ollama / 自定义 provider,工具调用框架);支持导入 .md / .txt /…

Example prompts

  • “/code-patterns”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Database 层模式(数据访问)
  2. Service 层模式(业务逻辑)
  3. Command 层模式(IPC 接口)
  4. 模块组织模式
  5. 组件模式(Ant Design + TypeScript)
  6. API 封装模式
  7. 自定义 Hook 模式
  8. Zustand 状态管理模式

What it can do on your machine

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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and rust).

    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

Code Patterns loads about 3.3k tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 184 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 184 words (~3,256 tokens).

“Tauri Desktop App 的代码模式与最佳实践技能,涵盖 Rust 后端三层架构和 React 前端的编码规范和设计模式。”

— opening of SKILL.md by bkywksj, Custom licence
name
code-patterns

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .codex/skills/code-patterns of bkywksj/knowledge-base.

Open the folder on GitHubat commit deb640b

Compare with similar skills

Code Patterns 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.

Code Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Patterns this skillbkywksj/knowledge-base330—~3.3kAutomated safety check: PassCustom licence
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT
Yaak Changelogmountain-loop/yaak19k—~1.6kAutomated safety check: PassMIT
Native Feel Cross Platform Desktopyetone/native-feel-skill1.9k1 repos~1.5kAutomated safety check: PassMIT
Ccgui Plugin Creatorzhukunpenglinyutong/desktop-cc-gui4.4k—~1.3kAutomated safety check: PassNone
Tabularis Local PR ReviewTabularisDB/tabularis5.1k—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Yaak Changelog

    mountain-loop/yaak

    Create or edit Yaak changelogs. An agent skill from mountain-loop/yaak.

    19k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Native Feel Cross Platform Desktop

    yetone/native-feel-skill

    A skill your agent uses when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a…

    1.9k GitHub starsUsed in 1 repo~1.5k tokens
    DevelopmentAuto-check passed
  • Ccgui Plugin Creator

    zhukunpenglinyutong/desktop-cc-gui

    为 CC GUI 桌面客户端创建、修改、迭代插件(Tier-0 声明式 CSS/JSON,或 Tier-1 单文件 ESM)。当用户要"做一个插件 / 给 CC GUI 加个功能 / 改输入框或界面样式 / 加设置页、侧边栏或状态栏入口 / 加面板页签或命令面板命令 / 把某套工作流包装成插件 / 改一下我做过的那个插件",或提到 ccgui 插件、插件目录、从本地目录安装插件时使用。

    4.4k GitHub stars~1.3k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Tabularis Local PR Review

    TabularisDB/tabularis

    Reviews a Tabularis pull request locally, judging the diff against the repo's rule files, verifying every claim in its description against the code, and running its tests on the real branch.

    5.1k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Skills Creator

    Stack-Cairn/LiveAgent

    Create or update LiveAgent runtime skills. An agent skill from Stack-Cairn/LiveAgent.

    2.2k GitHub stars~821 tokensUpdated today
    Auto-check passed

More from bkywksj/knowledge-base

All 37 skills in this repo
  • Collaborating With Codex

    bkywksj/knowledge-base

    当用户明确点名要用 OpenAI Codex CLI 协同时使用此 Skill,把指定任务委托给 Codex 执行并整合结果。

    330 GitHub stars~1.1k tokensUpdated 5 days ago
    Auto-check passed
  • Collaborating With Gemini

    bkywksj/knowledge-base

    当用户明确点名要用 Google Gemini CLI 协同时使用此 Skill,把指定任务委托给 Gemini 执行并整合结果。

    330 GitHub stars~1.5k tokensUpdated 5 days ago
    Auto-check passed
  • AI Profile Integration

    bkywksj/knowledge-base

    用于本项目中与 ai-profile crate 相关的开发:模型服务预置、ai.profile 导入导出、「获取」零成本验证、上下文窗口限额。

    330 GitHub stars~2.1k tokensUpdated 5 days ago
    Auto-check passed
  • API Development

    bkywksj/knowledge-base

    Tauri Command (IPC API) 开发技能,指导如何设计和实现 Rust Command 供前端调用. An agent skill from bkywksj/knowledge-base.

    330 GitHub stars~2.9k tokensUpdated 5 days ago
    Auto-check passed
  • Architecture Design

    bkywksj/knowledge-base

    Tauri 架构设计技能,指导双进程架构下的模块拆分和代码组织. An agent skill from bkywksj/knowledge-base.

    330 GitHub stars~1k tokensUpdated 5 days ago
    Auto-check passed
  • Brainstorm

    bkywksj/knowledge-base

    当需要探索方案、头脑风暴、创意思维时自动使用此 Skill. An agent skill from bkywksj/knowledge-base.

    330 GitHub stars~1.4k tokensUpdated 5 days ago
    Auto-check passed

Works with

Questions about Code Patterns

What does Code Patterns do?

代码模式与最佳实践技能,提供 Tauri 项目中常用的设计模式和编码规范. An agent skill from bkywksj/knowledge-base. Code Patterns is an agent skill from bkywksj/knowledge-base.

How do I install Code Patterns in Claude Code?

Run `npx skills add bkywksj/knowledge-base --skill code-patterns -a claude-code`. Or copy the skill folder (.codex/skills/code-patterns in bkywksj/knowledge-base) into .claude/skills/code-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Code Patterns in Codex?

Run `npx skills add bkywksj/knowledge-base --skill code-patterns -a codex`. Or copy the skill folder (.codex/skills/code-patterns in bkywksj/knowledge-base) into .agents/skills/code-patterns in your project. Codex loads it when a task matches its description.

Can I use Code Patterns 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 bkywksj/knowledge-base --skill code-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-patterns, .gemini/skills/code-patterns, .github/skills/code-patterns and .opencode/skills/code-patterns in your project.

What does Code Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Code Patterns is instructions for the agent only.

Does Code Patterns 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 Code Patterns 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 Code Patterns use?

Code Patterns has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Code Patterns use?

About 3.3k tokens (SKILL.md is roughly 13k 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 Code Patterns?

Skills that share tags, products or a category with Code Patterns: Use Yaak (mountain-loop/yaak, 19k stars), Yaak Changelog (mountain-loop/yaak, 19k stars), Native Feel Cross Platform Desktop (yetone/native-feel-skill, 1.9k stars) and Ccgui Plugin Creator (zhukunpenglinyutong/desktop-cc-gui, 4.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Patterns?

bkywksj (a GitHub user) maintains it in bkywksj/knowledge-base, which has 330 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 2, 2026.

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