infer-conventions
Skill by investbrainapp
Analyzes how a Laravel application is written and records its conventions as shared, path-scoped rules for AI agents and teammates. Use it to standardize project patterns or onboard people to how the codebase works.
Install infer-conventions
Built from the published package, never by AI.
git clone --depth 1 https://github.com/investbrainapp/investbrain /tmp/investbrain && mkdir -p ~/.claude/skills && cp -r /tmp/investbrain/.ai/skills/infer-conventions ~/.claude/skills/infer-conventionsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/investbrainapp/investbrain /tmp/investbrain && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/investbrain/.ai/skills/infer-conventions ~/.gemini/antigravity-cli/skills/infer-conventionsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Infer Conventions is an agent skill for Laravel applications. It sweeps the codebase across about 49 convention dimensions, including validation, models, architecture, testing, frontend, database and API responses. It also looks for house patterns specific to the app, such as Action classes, service objects and module folders.
The skill documents what the code actually does rather than what it should do. It reports conflicting patterns, asks for confirmation before recording, and saves approved rules with the Boost record-rule MCP tool, scoped to relevant paths in .ai/rules. It runs only when a user explicitly asks for it, and it is aimed at teams and agents that need to share how things are done in a project.
Written from the project's SKILL.md and checked against it.
What it can do
- Convention sweepChecks about 49 Laravel convention dimensions such as validation, models, testing, frontend and API responses.
- House pattern discoveryMaps the app folders and finds structural patterns the codebase commits to, such as Actions or DTOs.
- Conflict reportingShows mixed patterns with counts and example files, without recording a preferred winner.
- Rule recordingSaves approved conventions with the record-rule MCP tool, scoped to the most specific matching path.
- Existing rule checkReads .ai/rules first so dimensions already covered are skipped and not duplicated.
What you need
- A Laravel application
- Boost record-rule MCP tool with rules enabled (BOOST_RULES_ENABLED)
Try asking
- Infer the conventions used in this Laravel app and record them as rules
- Are we using Form Requests or inline validation? Check and report the split
- Sweep this project for coding conventions and ask me to confirm before recording
Good to know
- Runs only when the user explicitly asks for it
- Not for one-off code review, linter-enforced formatting, or hand-editing .ai/rules
- Conflicting patterns are reported, not recorded, unless a stable path boundary explains them
- If record-rule is unavailable, the rule text is reported for manual adding
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .ai/skills/infer-conventions/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
references/checklist.md12 KB
Alternatives to infer-conventions
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
infer-conventions: common questions
What is the Infer Conventions skill for?
It analyzes how a Laravel application is actually written and records those conventions as shared rules for agents and teammates.
Does it change my code?
The skill is described as documenting reality, not improving it. It records conventions in .ai/rules and does not propose code changes.
What happens when patterns conflict?
Conflicts are reported with counts and example files. They are recorded only if a stable path or context boundary explains both styles.
How do I install infer-conventions?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is infer-conventions free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is infer-conventions safe to use?
It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to infer-conventions?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
