# henriquefy

> Apply Henrique Bastos's Python design principles, OO patterns, and testing practices with verified citations.

henriquefy is a free AI agent skill on Agensi by Ivan Neto, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ivan Neto](https://www.agensi.io/creators/ivan-neto)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Uses: 2
- Version: 1.1
- Last updated: 2026-10-11
- Security: scan passed (2026-10-11); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/henriquefy
- Tags: code-review, python, object-oriented, refactoring, software-architecture

## About this skill

Python code often suffers from early generalization, leaky abstractions, and brittle test suites. This skill applies the specific software design philosophy of Henrique Bastos (HB Network) to your codebase, enforcing rigorous object-oriented principles and API design patterns derived from his courses and repositories.

### What it does
- **Code Review** identifies responsibility leaks, premature generalizations, and domain modeling conflicts using a distilled knowledge base.
- **Automated Grading** generates a two-tier report: a deterministic mechanical score and a nuanced judgment grade across seven architectural dimensions.
- **Guided Transformation** rewrites code snippets one principle at a time, ensuring test parity between every incremental change.
- **Knowledge Retrieval** answers architectural questions by citing specific lessons, timestamps, and repository commits from the HB Network ecosystem.
- **Pattern Matching** compares your implementation against verified patterns, course reconstructions, or framework-specific translations.

### How it works
1. Use the `check` command to run a mechanical analysis of your path followed by a manual judgment pass for deep architectural flaws.
2. Invoke `grade` to receive a "Nota do Henrique," a weighted rubric scoring your code from A to E based on Bastos's specific criteria.
3. Use `ask` to query the internal knowledge base for citations on specific principles like "Simple is better than complex."
4. Trigger `transform` to refactor a snippet following a strict playbook that prioritizes public contract stability and incremental testing.

### Frameworks & tools
Primarily designed for Python environments using `uv`, `pytest`, and standard OO patterns. It integrates with a custom CLI utility for deterministic scoring and uses a structured Markdown knowledge base for principle enforcement.

### Why this beats prompting it yourself
Generic AI advice often suggests industry "best practices" that contradict specific high-cohesion philosophies. This skill restricts the agent to a closed-loop knowledge base of Bastos's teachings, preventing hallucinations and ensuring every suggestion is backed by a verified lesson citation.

### Use cases
- Auditing a Django or Flask service for "fat models" and leaky business logic.
- Grading student or junior developer submissions against a specific pedagogical rubric.
- Refactoring legacy scripts into maintainable, test-driven object-oriented structures.
- Onboarding developers to the HB Network coding style through interactive Q&A.

### Known limitations
Does not support non-Python languages. Requires a local environment setup with the `henriquefy.sh` script for full grading capabilities. Findings are restricted to the provided knowledge base.

## Requires

- uv (Python tool runner)
- henriquefy
- Python
- contacts

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the henriquefy skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from standard AI coding assistants?

Henriquefy prevents 'best practice' sprawl by strictly enforcing the specific high-cohesion and domain-modeling philosophies taught by Henrique Bastos, ensuring your code adheres to a singular, proven architectural style rather than generic AI advice.

### What are the technical requirements for using the 'grade' command?

The skill is optimized for Python projects using `uv` and `pytest`. While it excels at refactoring Django or Flask services, it requires the provided `henriquefy.sh` script to be accessible in your local environment for its automated grading features.

### What exactly is included in the purchase?

You will receive the AI skill manifest, a structured Markdown knowledge base of Bastos's principles, the `henriquefy.sh` utility script for local scoring, and a set of integration guides for your preferred AI agent platform.

### Can I use Henriquefy to review JavaScript or Go codebases?

No, this skill is purpose-built for Python. Its design patterns, grading rubrics, and the 'Nota do Henrique' system are derived exclusively from Pythonic OO principles and specific HB Network course materials.

### How do I know the suggestions are actually based on Henrique Bastos's teachings?

Every architectural suggestion or refactoring advice provided by the skill includes a verified citation, such as specific lesson titles or repository commits, allowing you to cross-reference the advice with the original source material.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
