Token导航 LogoToken导航

Agent Skill · 前端设计

aif-rules(另类投资基金规则)

aif-rules 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

aif-rules 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,854。

总安装 588周安装 25GitHub Stars 535下载 206核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:aif-rules(另类投资基金规则)
来源仓库:https://github.com/lee-to/ai-factory
仓库路径:skills/aif-rules
安装命令:
npx skills add https://github.com/lee-to/ai-factory --skill aif-rules
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lee-to/ai-factory --skill aif-rules

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

aif-rules 用于添加项目约定和规则,支持三级规则层次结构:RULES.md(通用规则)、rules/base.md(项目基础约定)和技能特定规则。它通过加载配置文件解析路径和语言设置,生成结构化规则文档。

安装命令为 npx skills add https://github.com/lee-to/ai-factory --skill aif-rules,需确认权限范围和维护状态。使用前建议检查是否会触发联网、命令执行或文件读写,并参考原始 README 核验具体用法。

aif-rules 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/aif-rules

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/lee-to/ai-factory --skill aif-rules;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

aif-rules 怎么安装?

在终端执行 npx skills add https://github.com/lee-to/ai-factory --skill aif-rules。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

aif-rules 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

aif-rules 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

aif-rules 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

aif-rules 用的人多吗?

公开数据是累计安装 588 次,近一周安装 25 次,下载 206 次,GitHub 535 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

aif-rules 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
aif-rules

另类投资基金规则 · 本页

588535调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

AI Factory Rules - Project Conventions

Add short, actionable rules and conventions for the current project. Rules are saved to the configured RULES.md artifact (default: .ai-factory/RULES.md) and automatically loaded by /aif-implement before task execution.

Rules Hierarchy

AI Factory supports a three-level rules hierarchy:

  1. RULES.md - Axioms (universal project rules)

- Managed by this skill (/aif-rules) - Short, flat list of hard requirements - Loaded by all skills

  1. rules/base.md - Project-specific base conventions

- Created by /aif during project setup - Naming conventions, module boundaries, error handling patterns - Auto-detected from codebase analysis

  1. rules. - Area-specific conventions

- Created by this skill (Mode C) - Registered in .ai-factory/config.yaml as named keys such as rules.api - Area-specific patterns and constraints

Priority: More specific rules win. rules.<area> > rules/base.md > RULES.md

Workflow

Step 0: Load Config

FIRST: Read .ai-factory/config.yaml if it exists to resolve:

  • Paths: paths.rules_file and paths.rules
  • Language: language.ui for prompts

If config.yaml doesn't exist, use defaults:

  • RULES.md: .ai-factory/RULES.md
  • rules/: .ai-factory/rules/
  • Language: en (English)

Step 0.1: Load Skill Context

Read .ai-factory/skill-context/aif-rules/SKILL.md - MANDATORY if the file exists.

This file contains project-specific rules accumulated by /aif-evolve from patches, codebase conventions, and tech-stack analysis. These rules are tailored to the current project.

How to apply skill-context rules:

  • Treat them as project-level overrides for this skill's general instructions
  • When a skill-context rule conflicts with a general rule written in this SKILL.md, the skill-context rule wins (more specific context takes priority - same principle as nested CLAUDE.md files)
  • When there is no conflict, apply both: general rules from SKILL.md + project rules from skill-context
  • Do NOT ignore skill-context rules even if they seem to contradict this skill's defaults - they exist because the project's experience proved the default insufficient
  • CRITICAL: skill-context rules apply to ALL outputs of this skill - including the RULES.md format and rule formulation. If a skill-context rule says "rules MUST follow format X" or "RULES.md MUST include section Y" - you MUST comply. Generating rules that violate skill-context is a bug.

Enforcement: After generating any output artifact, verify it against all skill-context rules. If any rule is violated - fix the output before presenting it to the user.

Step 1: Determine Mode

Check $ARGUMENTS:
- Starts with "area:" or "area "? -> Mode C: Area rules
- Has text? -> Mode A: Direct add
- No arguments? -> Mode B: Interactive

Mode A: Direct Add

User provided rule text as argument:

/aif-rules Always use DTO classes instead of arrays

Skip to Step 2 with the provided text as the rule.

Mode B: Interactive

No arguments provided:

/aif-rules

Ask via AskUserQuestion:

What rule or convention would you like to add?

Examples:
- Always use DTO classes instead of arrays for data transfer
- Routes must use kebab-case
- All database queries go through repository classes
- Never use raw SQL, always use the query builder
- Log every external API call with request/response

Mode C: Area Rules

User wants to create or update area-specific rules:

/aif-rules area:api
/aif-rules area frontend

Workflow:

  1. Parse area name from argument (e.g., api, frontend, backend, database)
  2. Resolve the area file path inside the configured rules directory. Default: .ai-factory/rules/<area>.md
  3. Check if area file exists: Glob: <resolved rules dir>/<area>.md
  4. If file does NOT exist -> create it with header: # <Area> Rules > Area-specific conventions for <area>. Loaded after rules/base.md. ## Rules - [first rule]
  5. If file exists -> ask user what rule to add: AskUserQuestion: What rule would you like to add to <area>.md? Current rules in <area>.md: - [existing rule 1] - [existing rule 2] Options: 1. Add new rule - specify below 2. View full file 3. Cancel
  6. Append rule using Edit at the end of the ## Rules section.
  7. Register the area in .ai-factory/config.yaml:

- Ensure rules.<area> points to the resolved area rules file path - If config.yaml does not exist yet, create a minimal config scaffold using defaults plus the new rules.<area> entry - Preserve existing rules.base and any other named rules.<other-area> entries

  1. Confirm: ` Rule added to <resolved area rules file> and registered as rules.<area> in config.yaml: - [the rule] Total <area> rules: [count] `
  2. STOP after Mode C completes.

- Do not continue to Step 2 / Step 3 / Step 4 below. - Those steps apply only to top-level axioms rules in the resolved paths.rules_file artifact. - Area rules belong only in <resolved rules dir>/<area>.md plus the matching rules.<area> registration in config.yaml.

Common areas:

  • api - REST/GraphQL API conventions
  • frontend - UI components, state management
  • backend - Services, business logic
  • database - Queries, migrations, schemas
  • testing - Test patterns, coverage
  • security - Auth, validation, sanitization

Step 2: Read or Create RULES.md

Check if the resolved RULES.md path exists:

Glob: <resolved RULES.md path>

If file does NOT exist -> create it with the header and first rule:

# Project Rules

> Short, actionable rules and conventions for this project. Loaded automatically by /aif-implement.

## Rules

- [new rule here]

If file exists -> read it, then append the new rule at the end of the rules list.

Step 3: Write Rule

Use Edit to append the new rule as a - list item at the end of the ## Rules section.

Formatting rules:

  • Each rule is a single - line
  • Keep rules short and actionable (one sentence)
  • No categories, headers, or sub-lists - flat list only
  • No duplicates - if rule already exists (same meaning), tell user and skip
  • If user provides multiple rules at once (separated by newlines or semicolons), add each as a separate line

Step 4: Confirm

Rule added to <resolved RULES.md path>:

- [the rule]

Total rules: [count]

Rules

  1. One rule per line - flat list, no nesting
  2. No categories - keep it simple, no headers inside the rules section
  3. No duplicates - check for existing rules with the same meaning before adding
  4. Actionable language - rules should be clear directives ("Always...", "Never...", "Use...", "Routes must...")
  5. RULES.md location - use the resolved paths.rules_file path (default: .ai-factory/RULES.md)
  6. Area registration - every area rules file must be mirrored in config.yaml as rules.<area>
  7. Ownership boundary - this command owns the configured RULES.md artifact and may update the rules.* subset of .ai-factory/config.yaml; other context artifacts stay read-only unless explicitly requested by the user

平台分布

Codex

36.79%
按下载量换算76

Claude

26.72%
按下载量换算55

Cursor

20.13%
按下载量换算41

Gemini CLI

9.68%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills