Agent skill

Forge Codegen Crud

by yaomindong1996 in yaomindong1996/forge-admin

Generate or review Forge project code-generation output for CRUD modules.

Apache-2.0Auto-check passedDocuments & Office

Install Forge Codegen Crud

skills CLI
$ npx skills add yaomindong1996/forge-admin --skill forge-codegen-crud -a claude-code

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

GitHub CLI
$ gh skill install yaomindong1996/forge-admin forge-codegen-crud --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/yaomindong1996/forge-admin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/forge-codegen-crud .claude/skills/forge-codegen-crud && 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
forge-codegen-crud
GitHub stars
125
Token cost
~1.3k tokens
SKILL.md length
536 words
Files
5 (incl. references)
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate or review Forge project code-generation output for CRUD modules.

  • Works in 6 steps: Read AGENTS.md chapter 5,… → Identify the page pattern: single-table,… → Before generating or reviewing any table… → …
  • Creating single-table CRUD
  • SKILL.md covers Purpose, Workflow, Non-Negotiable Rules and Required References, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Forge Codegen Crud is an agent skill from yaomindong1996/forge-admin. Generate or review Forge project code-generation output for CRUD modules. Use when creating single-table CRUD, master-detail CRUD, left-tree-right-table pages, or generated Forge backend/frontend/SQL artifacts covering list/detail/add/update/delete, batch delete, import/export, dictionary translation, API encryption/decryption, Flyway migrations, logical-delete fields and active-only unique indexes, sysdicttype/sysdictdata inserts, sysexcelexportconfig/sysexcelcolumnconfig inserts, and sysresource menu or…

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `agents/openai.yaml`, `references/single-table-crud.md` and `references/sql-seeds.md`).

It sits in Documents & Office, covering Project scaffolding, Database migrations and Excel spreadsheets. It works with SQL and Microsoft Excel. The repository describes itself as: AI编码,SpringBoot 3.x + JDK 17 构建的轻量化企业级管理系统基础框架,以配置驱动为核心设计理念,追求简洁高效、开箱即用,助力开发者快速搭建稳定可靠的企业级应用,极简开发、高效迭代、生产可用. The licence is Apache-2.0.

When your agent uses it

  • Creating single-table CRUD
  • Master-detail CRUD
  • Left-tree-right-table pages
  • Generated Forge backend/frontend/SQL artifacts covering list/detail/add/update/delete

Example prompts

  • “/forge-codegen-crud”

Workflow steps

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

  1. Read AGENTS.md chapter 5, code-copilot/rules/coding-style.md, code-copilot/memory/preferences.md, and the relevant…
  2. Identify the page pattern: single-table, master-detail, or left-tree-right-table.
  3. Before generating or reviewing any table or Flyway migration, read references/sql-seeds.md and references/validation-checklist.md. For…
  4. If the request involves master-detail or left-tree-right-table, enforce the same schema, logical-delete, dictionary, Excel, resource…
  5. Generate Flyway SQL first, then backend files, frontend files, and menu/resource seed SQL.
  6. Verify generated code against the checklist before reporting completion.

What it can do on your machine

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

    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

Forge Codegen Crud loads about 1.3k tokens when it runs, and up to ~7k if it reads all its reference files. Until then it costs about 140 tokens; SKILL.md has 536 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~140
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7k

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 yaomindong1996/forge-admin at commit 031f756, republished under its Apache-2.0 licence (© yaomindong1996). 536 words, ~1,291 tokens.

Download SKILL.mdSave it as .claude/skills/forge-codegen-crud/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
forge-codegen-crud
description
Generate or review Forge project code-generation output for CRUD modules. Use when creating single-table CRUD, master-detail CRUD, left-tree-right-table pages, or generated Forge backend/frontend/SQL artifacts covering list/detail/add/update/delete, batch delete, import/export, dictionary translation, API encryption/decryption, Flyway migrations, logical-delete fields and active-only unique indexes, sys_dict_type/sys_dict_data inserts, sys_excel_export_config/sys_excel_column_config inserts, and sys_resource menu or permission inserts.

Forge Codegen CRUD

Purpose

Generate Forge-compliant CRUD artifacts from business requirements without re-discovering project rules. Treat AGENTS.md as the highest priority source; this skill only codifies the repeatable codegen workflow.

Workflow

  1. Read AGENTS.md chapter 5, code-copilot/rules/coding-style.md, code-copilot/memory/preferences.md, and the relevant code-copilot/memory/pitfalls/ category before generating code.
  2. Identify the page pattern: single-table, master-detail, or left-tree-right-table.
  3. Before generating or reviewing any table or Flyway migration, read references/sql-seeds.md and references/validation-checklist.md. For single-table CRUD, also read references/single-table-crud.md.
  4. If the request involves master-detail or left-tree-right-table, enforce the same schema, logical-delete, dictionary, Excel, resource, tenant, encryption, and validation rules, then inspect existing page-template components before implementation.
  5. Generate Flyway SQL first, then backend files, frontend files, and menu/resource seed SQL.
  6. Verify generated code against the checklist before reporting completion.

Non-Negotiable Rules

  • Use Flyway scripts under forge/db/migration/ for all schema and built-in data changes.
  • Use tenant_id = 1 for all built-in business data, dictionaries, and resources. Do not seed tenant 0.
  • Add del_flag and an explicit @TableLogic to logical-delete business/configuration/design tables. For active-only business uniqueness with a numeric primary key, use BIGINT/Long del_flag, UNIQUE (..., del_flag), and @TableLogic(value = "0", delval = "<primary-key-column>"); custom deletes must write the row primary key. Never generate logic_delete_active, generated/function/partial indexes, (business_key, deleted_at) with active rows stored as NULL, or a fixed delete value of 1 for tombstone-indexed tables. Follow references/sql-seeds.md for the decision rules and string-primary-key exception.
  • Put query SQL in Mapper XML. Do not generate Service-layer LambdaQueryWrapper query chains except MyBatis-Plus built-in selectById, insert, updateById, and deleteById style operations.
  • Use pageNum and pageSize; never generate backend page as the page parameter.
  • Use AiCrudPage URL placeholders with :id or :${rowKey}. Do not generate {id} placeholders.
  • Generated CRUD controllers and frontend API configs must use Forge's POST-safe codegen contract for detail, create, update, and delete:
    • detail: POST /getById
    • create: POST /add
    • update: POST /edit
    • delete: POST /remove/{id} and post@.../remove/:id Do not generate PUT or DELETE endpoints for generated CRUD modules.
  • Controller @RequestBody must be a typed DTO/VO. Do not generate @RequestBody Map<String, Object> or params.get("xxx") for fixed-field APIs.
  • Java status and enable/disable flags must use enums: EnableStatus for 0/1 switches, a module enum with getCode()/matches() for multi-state fields. Do not write setStatus(1) or getEnabled() == 1 in generated production code.
  • Use DictSelect, DictTag, and useDict() for dictionary fields. Do not hardcode frontend options or status label maps.
  • Generate sys_dict_type and sys_dict_data seed SQL for new dictionaries, or explicitly reuse an existing dictionary type discovered in migrations.
  • Generate sys_excel_export_config and sys_excel_column_config seed SQL when import/export is enabled.
  • Generate sys_resource seed SQL for menus and permissions after the page/API contract is known.
  • Add @ApiDecrypt and @ApiEncrypt for sensitive or encrypted endpoints, and use encrypted frontend request modes consistently.
Show full SKILL.md (93 more words)Show less

Required References

  • references/single-table-crud.md: generated file layout, backend/frontend CRUD contract, batch delete, import/export endpoint shape.
  • references/sql-seeds.md: table DDL, dictionary inserts, Excel config inserts, resource/menu inserts.
  • references/validation-checklist.md: final review checklist for generated artifacts.

Output Expectations

When generating a CRUD module, provide:

  • Backend Java artifacts: entity, DTO/query DTO, VO, Mapper, Mapper XML, Service, Service impl, Controller.
  • Frontend artifacts: API module if the page needs it, Vue page using AiCrudPage, dictionary bindings, import/export options.
  • Flyway SQL: table DDL, indexes, dictionaries, Excel config, resources, and optional API resources.
  • Verification notes: compile/build commands attempted and any commands not run.

© yaomindong1996, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in .agents/skills/forge-codegen-crud of yaomindong1996/forge-admin.

  • SKILL.md
  • agents/openai.yaml
  • references/single-table-crud.md
  • references/sql-seeds.md
  • references/validation-checklist.md

Open the folder on GitHubat commit 031f756

Compare with similar skills

Forge Codegen Crud 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.

Forge Codegen Crud compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Forge Codegen Crud this skillyaomindong1996/forge-admin125—~1.3kAutomated safety check: PassApache-2.0
Rust SQL Testshencangsheng/easydb_app590—~1.2kAutomated safety check: PassMIT
Data AnalysisHezaoHezao/poirot250—~997Automated safety check: PassMIT
Gaik ToolkitGAIK-project/gaik-toolkit100—~5.7kAutomated safety check: PassMIT
Efcore Query Performanceatherio-danp/cde-dotnetcc109—~1.1kAutomated safety check: NotesNone
Mindsdb MCP SkillLeoYeAI/openclaw-master-skills2.2k—~2.5kAutomated safety check: PassMIT

Similar skills

  • Rust SQL Test

    shencangsheng/easydb_app

    Enforces unit test requirements for the Rust data-processing modules in src-tauri/src/sql/ (generator.rs, parse.rs) and src-tauri/src/reader/ (excel.rs and other readers).

    590 GitHub stars~1.2k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Data Analysis

    HezaoHezao/poirot

    Analyze Excel/CSV files with DuckDB SQL via bash. An agent skill from HezaoHezao/poirot.

    250 GitHub stars~997 tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Gaik Toolkit

    GAIK-project/gaik-toolkit

    GAIK toolkit overview and reference. An agent skill from GAIK-project/gaik-toolkit.

    100 GitHub stars~5.7k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Efcore Query Performance

    atherio-danp/cde-dotnetcc

    Optimize EF Core (Npgsql/PostgreSQL) queries in the .NET API — fix N+1, choose tracking modes, use compiled queries, split queries, and avoid translation traps.

    109 GitHub stars~1.1k tokensUpdated 2 mo ago
    DatabasesAuto-check: notes
  • Mindsdb MCP Skill

    LeoYeAI/openclaw-master-skills

    MindsDB MCP服务器交互技能,用于通过自然语言查询和操作200+企业级数据源。当用户需要查询数据库、分析数据、创建AI模型、连接数据源(MySQL、PostgreSQL、MongoDB、Excel、CSV、Gmail、Slack等)、执行SQL查询、进行数据预测、构建知识库(RAG)、智能问答、文档检索或任何与数据库交互的任务时使用此技能。即使没有明确提到MindsDB,只要涉及数据库操…

    2.2k GitHub stars~2.5k tokensUpdated 2 mo ago
    DatabasesAuto-check passed
  • Excel and CSV Data Analysis

    bytedance/deer-flow

    Analyzes uploaded Excel and CSV files with SQL through DuckDB, producing schema inspections, statistical summaries and exports to CSV, JSON or Markdown.

    83k GitHub starsUsed in 4 repos~2.2k tokens
    Data & AnalyticsAuto-check passed

More from yaomindong1996/forge-admin

  • Web Content Fetcher

    yaomindong1996/forge-admin

    Extract article content from any URL as clean Markdown. An agent skill from yaomindong1996/forge-admin.

    125 GitHub stars~898 tokensUpdated today
    Auto-check passed
  • Forge Project Init

    yaomindong1996/forge-admin

    Bootstrap a new project from this Forge template end to end, or reset a Forge database into a clean template system.

    125 GitHub stars~1.9k tokensUpdated today
    Auto-check: notes
  • Forge Business Flow Development

    yaomindong1996/forge-admin

    Develop Forge business approval workflows backed by Flowable, using the current sample purchase order approval as the reference.

    125 GitHub stars~1.3k tokensUpdated today
    Auto-check passed

Questions about Forge Codegen Crud

What does Forge Codegen Crud do?

Generate or review Forge project code-generation output for CRUD modules. Forge Codegen Crud is an agent skill from yaomindong1996/forge-admin. Generate or review Forge project code-generation output for CRUD modules.

When should I use Forge Codegen Crud?

Forge Codegen Crud fits situations like: creating single-table CRUD; master-detail CRUD; left-tree-right-table pages; generated Forge backend/frontend/SQL artifacts covering list/detail/add/update/delete.

How do I install Forge Codegen Crud in Claude Code?

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

How do I install Forge Codegen Crud in Codex?

Run `npx skills add yaomindong1996/forge-admin --skill forge-codegen-crud -a codex`. Or copy the skill folder (.agents/skills/forge-codegen-crud in yaomindong1996/forge-admin) into .agents/skills/forge-codegen-crud in your project. Codex loads it when a task matches its description.

Can I use Forge Codegen Crud 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 yaomindong1996/forge-admin --skill forge-codegen-crud -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/forge-codegen-crud, .gemini/skills/forge-codegen-crud, .github/skills/forge-codegen-crud and .opencode/skills/forge-codegen-crud in your project.

What does Forge Codegen Crud need to run?

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

Does Forge Codegen Crud 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 Forge Codegen Crud 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 Forge Codegen Crud use?

Forge Codegen Crud is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Forge Codegen Crud use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.7k tokens, read only when the agent opens those files.

What are the alternatives to Forge Codegen Crud?

Skills that share tags, products or a category with Forge Codegen Crud: Rust SQL Test (shencangsheng/easydb_app, 590 stars), Data Analysis (HezaoHezao/poirot, 250 stars), Gaik Toolkit (GAIK-project/gaik-toolkit, 100 stars) and Efcore Query Performance (atherio-danp/cde-dotnetcc, 109 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Forge Codegen Crud?

yaomindong1996 (a GitHub user) maintains it in yaomindong1996/forge-admin, which has 125 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 8, 2026.

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