Agent skill

Athena Preferences

by m-xlsea in m-xlsea/ruoyi-plus-soybean

Athena 全局偏好便利层。直接操作 CC 原生 ~/.claude/settings.json 的 permissions.allow/deny 和全局 CLAUDE.md。

MITAuto-check passedAgent Workflows

Install Athena Preferences

skills CLI
$ npx skills add m-xlsea/ruoyi-plus-soybean --skill athena-preferences -a claude-code

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

GitHub CLI
$ gh skill install m-xlsea/ruoyi-plus-soybean athena-preferences --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/m-xlsea/ruoyi-plus-soybean.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/athena-preferences .claude/skills/athena-preferences && 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
athena-preferences
GitHub stars
329
Token cost
~999 tokens
SKILL.md length
116 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Athena 全局偏好便利层。直接操作 CC 原生 ~/.claude/settings.json 的 permissions.allow/deny 和全局 CLAUDE.md。

  • Works in 4 steps: 不修改 managed-settings.json (企业管理层) → 不修改项目 .claude/settings.json (那是项目级, 用… → 永远显示 diff 在写入前——用户能看到改了什么 → …
  • Tasks that involve Agent instruction files
  • SKILL.md covers 设计原则, 子命令, 安全约束 and Boundary
  • Calls node

What it does

Athena Preferences is an agent skill from m-xlsea/ruoyi-plus-soybean. Athena 全局偏好便利层。直接操作 CC 原生 ~/.claude/settings.json 的 permissions.allow/deny 和全局 CLAUDE.md。

Its SKILL.md is about 1000 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 Agent Workflows, covering Agent instruction files. It works with Vue.js. The repository describes itself as: RuoYi-Plus-Soybean 是一个现代化的企业级多租户管理系统,它结合了 RuoYi-Vue-Plus 的强大后端功能和 Soybean Admin 的现代化前端特性,为开发者提供了完整的企业管理解决方案。 The licence is MIT.

When your agent uses it

  • Tasks that involve Agent instruction files

Example prompts

  • “/athena-preferences”

Workflow steps

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

  1. 不修改 managed-settings.json (企业管理层)
  2. 不修改项目 .claude/settings.json (那是项目级, 用 settings.local.json 兜底)
  3. 永远显示 diff 在写入前——用户能看到改了什么
  4. 永远说明落点 ("位置: ~/.claude/settings.json") 而不是含糊"已记住"

What it can do on your machine

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

    • node

    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):

    • code.claude.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

Athena Preferences loads about 999 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 116 words of instructions outside code blocks.

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

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 m-xlsea/ruoyi-plus-soybean at commit a0ab2dc, republished under its MIT licence (© m-xlsea). 116 words, ~999 tokens.

Download SKILL.mdSave it as .claude/skills/athena-preferences/SKILL.md (or your agent's skills folder).
name
athena-preferences
description
Athena 全局偏好便利层。直接操作 CC 原生 ~/.claude/settings.json 的 permissions.allow/deny 和全局 CLAUDE.md。
effort
medium
disable-model-invocation
true
argument-hint
<subcommand> <args>

/athena-preferences (v9.6)

设计原则

Athena 不造私有偏好文件。所有写入都是 CC 原生位置:

偏好类型落点
全局 allow~/.claude/settings.json permissions.allow[]
全局 deny~/.claude/settings.json permissions.deny[]
工具偏好 (pnpm/vitest)~/.claude/CLAUDE.md "## Tool Preferences" 段

参考: https://code.claude.com/docs/en/settings + https://code.claude.com/docs/en/permissions

永远不写:

  • ❌ ~/.claude/memory/athena-*.list 类私有文件
  • ❌ 项目特定的命令到全局 (路径泛化检查)

永远不自动写:

  • ❌ 不监控命令频次自动建议 (隐私决定)
  • ✅ 仅在用户显式调用本 skill 时写

子命令

/athena:remember-allow <pattern>

参数: 标准 CC permission pattern, 如 Bash(pnpm test:*).

javascript
const fs = require('fs');
const os = require('os');
const path = require('path');

const settingsPath = path.join(os.homedir(), '.claude/settings.json');
let s = {};
try { s = JSON.parse(fs.readFileSync(settingsPath,'utf8')); } catch(e) {}
s.permissions = s.permissions || {};
s.permissions.allow = s.permissions.allow || [];

const pattern = process.argv[2];

// 路径泛化检查: 拒绝含项目特定路径的 pattern
if (/\/Users\/|\/home\/[^*/]|C:\\Users\\/.test(pattern) || /[\w-]+\.(com|cn|net)\//.test(pattern)) {
  console.error('❌ 拒绝: pattern 含项目/用户特定路径, 不应写入全局');
  console.error('   如果只想本项目用, 写到 .claude/settings.local.json');
  process.exit(1);
}

if (s.permissions.allow.includes(pattern)) {
  console.log('✓ 已存在, 无需添加');
  process.exit(0);
}
s.permissions.allow.push(pattern);
fs.writeFileSync(settingsPath, JSON.stringify(s,null,2));
console.log(`✓ 已加入全局 allow: ${pattern}`);
console.log(`   位置: ${settingsPath}`);
/athena:remember-deny <pattern>

同 remember-allow, 写入 permissions.deny[]. 但不做路径泛化拒绝——deny 越严格越好。

/athena:remember-tool <key>=<value>

写入 ~/.claude/CLAUDE.md 的 "## Tool Preferences" 段 (无则创建):

## Tool Preferences

- 包管理器: pnpm
- 测试运行器: vitest
- Linter: biome
- 默认提交者: --signoff
/athena:show-preferences
bash
echo "=== Global allow (~/.claude/settings.json) ==="
node -e 'console.log((JSON.parse(require("fs").readFileSync(require("os").homedir()+"/.claude/settings.json")).permissions?.allow || []).join("\n"))'

echo ""
echo "=== Global deny ==="
node -e 'console.log((JSON.parse(require("fs").readFileSync(require("os").homedir()+"/.claude/settings.json")).permissions?.deny || []).join("\n"))'

echo ""
echo "=== Tool preferences (~/.claude/CLAUDE.md) ==="
sed -n '/^## Tool Preferences/,/^## /p' ~/.claude/CLAUDE.md 2>/dev/null | head -20
/athena:forget <pattern>

从全局 allow/deny 中删除指定 pattern. 显示删除前后 diff.

javascript
const fs = require('fs');
const os = require('os');
const path = require('path');

const settingsPath = path.join(os.homedir(), '.claude/settings.json');
const s = JSON.parse(fs.readFileSync(settingsPath,'utf8'));
const pattern = process.argv[2];

const beforeA = s.permissions?.allow?.length || 0;
const beforeD = s.permissions?.deny?.length || 0;
if (s.permissions?.allow) s.permissions.allow = s.permissions.allow.filter(p => p !== pattern);
if (s.permissions?.deny) s.permissions.deny = s.permissions.deny.filter(p => p !== pattern);
const afterA = s.permissions?.allow?.length || 0;
const afterD = s.permissions?.deny?.length || 0;

fs.writeFileSync(settingsPath, JSON.stringify(s,null,2));
console.log(`allow: ${beforeA} → ${afterA}`);
console.log(`deny:  ${beforeD} → ${afterD}`);

安全约束

  1. 不修改 managed-settings.json (企业管理层)
  2. 不修改项目 .claude/settings.json (那是项目级, 用 settings.local.json 兜底)
  3. 永远显示 diff 在写入前——用户能看到改了什么
  4. 永远说明落点 ("位置: ~/.claude/settings.json") 而不是含糊"已记住"

Boundary

  • ✅ 操作 ~/.claude/settings.json
  • ✅ 追加到 ~/.claude/CLAUDE.md 末尾 "## Tool Preferences" 段
  • ❌ 不读不写 ~/.claude/projects/ (那是 session memory, claude-mem 管)
  • ❌ 不读不写 ~/.claude/memory/
  • ❌ 不创建 ~/.claude/athena-*.txt 类文件

© m-xlsea, 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 .claude/skills/athena-preferences of m-xlsea/ruoyi-plus-soybean.

Open the folder on GitHubat commit a0ab2dc

Compare with similar skills

Athena Preferences 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.

Athena Preferences compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Athena Preferences this skillm-xlsea/ruoyi-plus-soybean329—~999Automated safety check: PassMIT
Init Ruleslifedever/claude-rules191—~652Automated safety check: PassMIT
Using Agent Skillsaddyosmani/agent-skills105k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.8k2 repos~627Automated safety check: PassMIT
Writing For Agentsbestofjs/bestofjs3.1k20 repos~2.7kAutomated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT

Similar skills

  • Init Rules

    lifedever/claude-rules

    Initialize or update CLAUDE.md coding standards for any project by auto-detecting tech stack and assembling rules from the claude-rules template library.

    191 GitHub stars~652 tokensUpdated 6 mo ago
    Agent WorkflowsAuto-check passed
  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    105k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.8k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 20 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 10 days ago
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~11k tokens
    Agent WorkflowsAuto-check passed

More from m-xlsea/ruoyi-plus-soybean

All 9 skills in this repo
  • Athena Init

    m-xlsea/ruoyi-plus-soybean

    项目初始化。每个新项目首次使用 Athena 时运行。扫描项目、生成环境脚本、创建 .aistate/ schema. An agent skill from m-xlsea/ruoyi-plus-soybean.

    329 GitHub stars~671 tokensUpdated 3 mo ago
    Auto-check passed
  • Athena Migrate

    m-xlsea/ruoyi-plus-soybean

    把 v9.5.5 项目的 .aistate/ 升级到 v9.6 schema (INDEX + details/ 重构)。

    329 GitHub stars~1.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Athena Setup

    m-xlsea/ruoyi-plus-soybean

    Athena 全局安装。检查 CC 版本、装插件、配置 Codex、部署 hooks、推 claude-mem。首次使用运行一次。

    329 GitHub stars~1k tokensUpdated 3 mo ago
    Auto-check passed
  • Athena Status

    m-xlsea/ruoyi-plus-soybean

    Athena 状态面板。显示当前 PACE 状态、Hook 触发计数、claude-mem 状态、plugin 健康. An agent skill from m-xlsea/ruoyi-plus-soybean.

    329 GitHub stars~782 tokensUpdated 3 mo ago
    Auto-check passed
  • Pace

    m-xlsea/ruoyi-plus-soybean

    工作流路由器。收到开发任务时触发。按任务复杂度路由到 6 条路径, 编排 CC 工具 + 增强节点. An agent skill from m-xlsea/ruoyi-plus-soybean.

    329 GitHub stars~2.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Pace

    m-xlsea/ruoyi-plus-soybean

    工作流路由器 (Codex 版). An agent skill from m-xlsea/ruoyi-plus-soybean.

    329 GitHub stars~691 tokensUpdated 3 mo ago
    Auto-check passed

Works with

Categories

Questions about Athena Preferences

What does Athena Preferences do?

Athena 全局偏好便利层。直接操作 CC 原生 ~/.claude/settings.json 的 permissions.allow/deny 和全局 CLAUDE.md。. Athena Preferences is an agent skill from m-xlsea/ruoyi-plus-soybean.

When should I use Athena Preferences?

Athena Preferences fits situations like: tasks that involve Agent instruction files.

How do I install Athena Preferences in Claude Code?

Run `npx skills add m-xlsea/ruoyi-plus-soybean --skill athena-preferences -a claude-code`. Or copy the skill folder (.claude/skills/athena-preferences in m-xlsea/ruoyi-plus-soybean) into .claude/skills/athena-preferences in your project. Claude Code loads it when a task matches its description.

How do I install Athena Preferences in Codex?

Run `npx skills add m-xlsea/ruoyi-plus-soybean --skill athena-preferences -a codex`. Or copy the skill folder (.claude/skills/athena-preferences in m-xlsea/ruoyi-plus-soybean) into .agents/skills/athena-preferences in your project. Codex loads it when a task matches its description.

Can I use Athena Preferences 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 m-xlsea/ruoyi-plus-soybean --skill athena-preferences -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/athena-preferences, .gemini/skills/athena-preferences, .github/skills/athena-preferences and .opencode/skills/athena-preferences in your project.

What does Athena Preferences need to run?

Going by SKILL.md and its folder, Athena Preferences needs the command-line tools its instructions call (node).

Does Athena Preferences access the network?

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

Is Athena Preferences 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 Athena Preferences use?

Athena Preferences 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 Athena Preferences use?

About 999 tokens (SKILL.md is roughly 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 Athena Preferences?

Skills that share tags, products or a category with Athena Preferences: Init Rules (lifedever/claude-rules, 191 stars), Using Agent Skills (addyosmani/agent-skills, 105k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.8k stars) and Writing For Agents (bestofjs/bestofjs, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Athena Preferences?

m-xlsea (a GitHub user) maintains it in m-xlsea/ruoyi-plus-soybean, which has 329 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on June 16, 2026.

Source: m-xlsea/ruoyi-plus-soybean on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.