DevRules¶
Automate your internal rules. Reduce errors. Accelerate onboarding.
π§© The Problem¶
Every company has rules. But few apply them automatically.
- β New employees unintentionally break conventions
- β Scattered or outdated documentation
- β Common conflicts:
- Commits to main π€¦
- Poorly named branches
- Mixed changes between features
- Inconsistent commit messages
- β Tribal knowledge: doesn't scale, isn't taught, isn't preserved
- β Manual PR reviews catch issues too late
π The Solution: DevRules¶
Your standards, converted into living rules, applied directly in the developer's workflow.
DevRules = Linting + Corporate rules + Automatic onboarding
- Installs as a Python CLI tool
- Uses a secure, versioned, and customizable
.devrules.tomlfile - Applies rules automatically through Git hooks when developers:
- Create a branch
- Make a commit
- Open a pull request
- Deploy to environments
- Provides interactive tools for guided workflows
- Integrates with GitHub API for seamless issue and PR management
β Key Benefits¶
-
ποΈ Automatic standardization
Everyone follows the same rules without memorizing anything. -
π¦ Real-time error prevention
Detects and blocks bad practices before they reach the repo. -
π§ Accelerated onboarding
New hires learn the rules by doing, not reading. -
π‘οΈ Corporate compliance
Security, style, architecture, naming, and processes⦠all enforced. -
β‘ Less rework and more speed
Fewer conflicts β more time building features. -
π¨ Interactive workflows
Guided branch creation and commit processes reduce cognitive load. -
π Context-aware documentation
Documentation appears automatically when you modify specific filesβperfect timing, 100% relevant, zero searching.
π Real Examples¶
-
βοΈ Prevent commits to forbidden branches
Automatically blocks commits tomain,develop, or staging branches. -
βοΈ Smart branch naming
Validates and suggests branch names following your patterns: feature/1234-improve-cachebugfix/998-login-error-
hotfix/critical-security-patch -
βοΈ Commit message validation
Enforces structured commit messages with configurable tags: [FTR] Add user authentication[FIX] Resolve memory leak in cache-
[DOCS] Update API documentation -
βοΈ Pull Request size control
Prevents oversized PRs that are hard to review (configurable limits on lines of code and files changed). -
βοΈ Deployment workflow management
Control deployments across environments with built-in checks and Jenkins integration. -
βοΈ Interactive TUI Dashboard
Track metrics, manage issues, and monitor project health from your terminal. -
βοΈ GitHub integration
Link branches to issues, create PRs, and update project boards automatically. -
βοΈ Enterprise builds
Create custom packages with embedded corporate configuration for zero-config deployments.
Companies can build their own branded version (e.g.,devrules-acme) with pre-configured rules baked in. -
βοΈ Context-aware documentation
Automatically displays relevant documentation based on files you're modifying: - Shows migration guides when touching
migrations/** - Displays API guidelines when editing
api/**/*.py - Surfaces security policies for sensitive code
- Includes actionable checklists, not just links
- 300% increase in documentation visibility - appears exactly when needed, not before or after
π Company Impact¶
| Current problem | With DevRules |
|---|---|
| New hires take weeks to adopt standards | β They learn from the first commit |
| Rules are forgotten, violated, or reinterpreted | β Living rules, always applied |
| Rework due to broken merges and workflows | β Automatic prevention |
| Misaligned teams | β Absolute consistency |
| Manual enforcement wastes senior time | β Automated validation |
| Complex deployment procedures | β Standardized deployment workflows |
π― Quick Wins¶
Day 1: Install and configure in under 5 minutes
Week 1: All commits follow corporate standards
Month 1: Onboarding time reduced by 50%
Quarter 1: Measurable reduction in merge conflicts and PR rework
π’ Enterprise Customization¶
Build Your Own Branded Version
Companies can create their own custom DevRules package with embedded corporate standards:
devrules build-enterprise \
--config .devrules.enterprise.toml \
--name devrules-mycompany \
--sensitive github.api_url,github.owner
Benefits:
- π¦ Zero-config deployment - Developers install your package and rules are pre-loaded
- π·οΈ Company branding - pip install devrules-acme instead of generic DevRules
- π Embedded secrets - Safely include internal API endpoints and configurations
- π― Version control - Lock your entire organization to specific rule versions
- π Instant compliance - New hires get all standards from day one
Perfect for organizations with strict compliance, security requirements, or complex internal workflows.
π€ Final Message¶
DevRules allows you to operate with large company standards, without needing to build costly internal tooling.
Reduce errors. Accelerate deliveries. Improve quality.
Perfect for teams of any sizeβfrom startups establishing their first conventions to enterprises enforcing complex compliance requirements.
π Start today¶
Initialize your configuration:
Install Git hooks for automatic enforcement:
Create your first compliant branch: