Mspm0 Ccs
mc3545dada/mspm0-skill
Tool-neutral CLI agent rules for TI MSPM0 development with Code Composer Studio, Keil/uVision, CMake/GCC/OpenOCD, SysConfig, and DriverLib.
Generate AI assistant configuration files for a repository — CLAUDE.md, AGENTS.md, and Cursor rules (.cursor/rules/.mdc) — from codebase analysis.
$ npx skills add divar-ir/ai-doc-gen --skill generate-ai-rules -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install divar-ir/ai-doc-gen generate-ai-rules --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/divar-ir/ai-doc-gen.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/generate-ai-rules .claude/skills/generate-ai-rules && rm -rf skills-srcUse ~/.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/
Install the "generate-ai-rules" agent skill from https://github.com/divar-ir/ai-doc-gen/tree/main/skills/generate-ai-rules into .claude/skills/generate-ai-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-ai-rules", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/divar-ir/ai-doc-gen/tree/main/skills/generate-ai-rulesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add divar-ir/ai-doc-gen --skill generate-ai-rules -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install divar-ir/ai-doc-gen generate-ai-rules --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divar-ir/ai-doc-gen.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/generate-ai-rules .agents/skills/generate-ai-rules && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "generate-ai-rules" agent skill from https://github.com/divar-ir/ai-doc-gen/tree/main/skills/generate-ai-rules into .agents/skills/generate-ai-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-ai-rules", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divar-ir/ai-doc-gen --skill generate-ai-rules -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install divar-ir/ai-doc-gen generate-ai-rules --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divar-ir/ai-doc-gen.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/generate-ai-rules .cursor/skills/generate-ai-rules && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "generate-ai-rules" agent skill from https://github.com/divar-ir/ai-doc-gen/tree/main/skills/generate-ai-rules into .cursor/skills/generate-ai-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-ai-rules", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/divar-ir/ai-doc-gen.git --path skills/generate-ai-rules--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add divar-ir/ai-doc-gen --skill generate-ai-rules -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install divar-ir/ai-doc-gen generate-ai-rules --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divar-ir/ai-doc-gen.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/generate-ai-rules .gemini/skills/generate-ai-rules && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "generate-ai-rules" agent skill from https://github.com/divar-ir/ai-doc-gen/tree/main/skills/generate-ai-rules into .gemini/skills/generate-ai-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-ai-rules", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install divar-ir/ai-doc-gen generate-ai-rulesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add divar-ir/ai-doc-gen --skill generate-ai-rules -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/divar-ir/ai-doc-gen.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/generate-ai-rules .github/skills/generate-ai-rules && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "generate-ai-rules" agent skill from https://github.com/divar-ir/ai-doc-gen/tree/main/skills/generate-ai-rules into .github/skills/generate-ai-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-ai-rules", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divar-ir/ai-doc-gen --skill generate-ai-rules -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install divar-ir/ai-doc-gen generate-ai-rules --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divar-ir/ai-doc-gen.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/generate-ai-rules .opencode/skills/generate-ai-rules && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "generate-ai-rules" agent skill from https://github.com/divar-ir/ai-doc-gen/tree/main/skills/generate-ai-rules into .opencode/skills/generate-ai-rules/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-ai-rules", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
generate-ai-rulesGenerate AI assistant configuration files for a repository — CLAUDE.md, AGENTS.md, and Cursor rules (.cursor/rules/.mdc) — from codebase analysis.
Generate AI Rules is an agent skill from divar-ir/ai-doc-gen. Generate AI assistant configuration files for a repository — CLAUDE.md, AGENTS.md, and Cursor rules (.cursor/rules/.mdc) — from codebase analysis. Use whenever the user wants to create or update CLAUDE.md, AGENTS.md, agent rules, Cursor rules, AI coding assistant configuration, or "onboard AI tools" to a project, even if they only mention one of the file types.
Its SKILL.md is about 1.2k 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 Pydantic AI and Python. The repository describes itself as: AI-powered multi-agent system that automatically analyzes codebases and generates comprehensive documentation. Features GitLab integration, concurrent processing, and multiple… The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit bd3aba7. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
uvFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Generate AI Rules loads about 1.2k tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 598 words of instructions outside code blocks.
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.
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.
The full file from divar-ir/ai-doc-gen at commit bd3aba7, republished under its MIT licence (© divar-ir). 598 words, ~1,216 tokens.
.claude/skills/generate-ai-rules/SKILL.md (or your agent's skills folder).Generate configuration files that help AI coding assistants work effectively with a codebase. Three targets, generated from the same analysis so they stay consistent:
<repo>/.ai/docs/ for analysis documents from the analyze-codebase skill. If present, use them as the primary source (spot-check against the code — they may be stale). If absent, offer to run analyze-codebase first, or explore the codebase directly for a quicker pass.Shared principles for all targets:
uv run vs pip).uv run ruff format src/" beats "format your code".The primary file — write it first, and write it best. Target well under 150 lines.
Claude Code reads AGENTS.md natively, so avoid duplicating content between the two files. Pick based on what exists and what the user wants:
See AGENTS.md for project instructions. plus only Claude-specific additions if any (e.g., skill/subagent usage preferences, permission notes). If there is nothing Claude-specific, ask the user whether they want CLAUDE.md at all.Generate 2–3 focused, composable rule files in MDC format (markdown with YAML frontmatter):
---
description: Brief description of what this rule covers
globs:
- "src/**/*.py"
alwaysApply: false
---
# Rule Title
Content...project-overview.mdc — project context, architecture, conventions (alwaysApply: true, no globs needed)code-patterns.mdc — code style, testing patterns, anti-patterns to avoid (globbed to source files)api-conventions.mdc — only if the project has a significant API surface (globbed to API/handler files)Keep each file to 50–100 lines. Rules should be prescriptive and project-specific, with short code examples from the actual codebase. Reference files with @path syntax where helpful. If a legacy .cursorrules file exists, migrate its still-valid content into the new files and tell the user the legacy file can be removed.
When updating rather than creating:
List the files written, their line counts, and anything you left out or couldn't verify. If the repo's docs and reality diverged notably, mention it — that's a signal the team should know.
© divar-ir, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/generate-ai-rules of divar-ir/ai-doc-gen.
Open the folder on GitHubat commit bd3aba7
Generate AI Rules 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Generate AI Rules this skilldivar-ir/ai-doc-gen | 767 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Mspm0 Ccsmc3545dada/mspm0-skill | 374 | — | ~4.5k | Automated safety check: Pass | MIT | |
| Goal Prompt Builderwin4r/goal-prompt-builder | 229 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Requirement Ledger CLI Workflowadand-91/gpt-6-astra-skill | 126 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Migrating Claude Agent SDK To Pydantic AIpydantic/pydantic-ai | 20k | — | ~1.6k | Automated safety check: Pass | MIT | |
| Migrating Google Adk To Pydantic AIpydantic/pydantic-ai | 20k | — | ~1.6k | Automated safety check: Pass | MIT |
mc3545dada/mspm0-skill
Tool-neutral CLI agent rules for TI MSPM0 development with Code Composer Studio, Keil/uVision, CMake/GCC/OpenOCD, SysConfig, and DriverLib.
win4r/goal-prompt-builder
Build high-quality /goal commands for OpenAI Codex CLI 0.128+ that maximize audit-friendliness and minimize false-completion.
adand-91/gpt-6-astra-skill
Runs an evidence-bound audit, daily or weekly review through the requirement-ledger CLI, binding scope and authority first and blocking the final report until a handoff check passes.
pydantic/pydantic-ai
Migrate Python applications from the Claude Agent SDK to Pydantic AI and, only when needed, Pydantic AI Harness.
pydantic/pydantic-ai
Migrate Python Google Agent Development Kit (ADK) applications to Pydantic AI.
hermes-labs-ai/lintlang
Lint AI agent instruction files (SKILL.md, CLAUDE.md, AGENTS.md, GEMINI.md), tool definitions, system prompts, and agent configs with the deterministic LintLang CLI.
divar-ir/ai-doc-gen
Run a multi-agent deep analysis of a codebase, producing AI-readable analysis documents in .ai/docs/ covering structure, dependencies, data flow, request flow, and APIs.
divar-ir/ai-doc-gen
Generate or refresh a comprehensive, professional README.md for a repository, with architecture overview, mermaid and optional C4 diagrams, repository structure, dependencies, and API documentation.
Works with
Categories
Generate AI assistant configuration files for a repository — CLAUDE.md, AGENTS.md, and Cursor rules (.cursor/rules/.mdc) — from codebase analysis. Generate AI Rules is an agent skill from divar-ir/ai-doc-gen.mdc) — from codebase analysis.
Generate AI Rules fits situations like: the user wants to create; update CLAUDE.md; AI coding assistant configuration; onboard AI tools to a project.
Run `npx skills add divar-ir/ai-doc-gen --skill generate-ai-rules -a claude-code`. Or copy the skill folder (skills/generate-ai-rules in divar-ir/ai-doc-gen) into .claude/skills/generate-ai-rules in your project. Claude Code loads it when a task matches its description.
Run `npx skills add divar-ir/ai-doc-gen --skill generate-ai-rules -a codex`. Or copy the skill folder (skills/generate-ai-rules in divar-ir/ai-doc-gen) into .agents/skills/generate-ai-rules in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add divar-ir/ai-doc-gen --skill generate-ai-rules -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-ai-rules, .gemini/skills/generate-ai-rules, .github/skills/generate-ai-rules and .opencode/skills/generate-ai-rules in your project.
Going by SKILL.md and its folder, Generate AI Rules needs the command-line tools its instructions call (uv).
SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
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.
Generate AI Rules is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Generate AI Rules: Mspm0 Ccs (mc3545dada/mspm0-skill, 374 stars), Goal Prompt Builder (win4r/goal-prompt-builder, 229 stars), Requirement Ledger CLI Workflow (adand-91/gpt-6-astra-skill, 126 stars) and Migrating Claude Agent SDK To Pydantic AI (pydantic/pydantic-ai, 20k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
divar-ir (a GitHub organization) maintains it in divar-ir/ai-doc-gen, which has 767 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on July 21, 2026.
Source: divar-ir/ai-doc-gen on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.