Library

Volume 4 · AI-Assisted Development (AI SDLC)

Notebook
Sign in

Section 14

Advanced AI Customizations (AGENTS.md, skills/, Personas)

306 words · about 1 min

14.1 The Advanced File Structure

Beyond .cursorrules, a structured .agents or .github/ai directory at the workspace level.

AGENTS.md (System Rules): Defines overarching behavioral constraints and global rules for any AI agent operating in the workspace. Example: “Never modify database schemas without triggering a Liquibase script.” Acts as the ultimate governance layer applying universally to every AI task.

skills/ directory (Reusable Capabilities): Contains specific tasks the AI is trained to execute, mapped out in SKILL.md files with YAML frontmatter for name and description. Instead of engineers writing one-off prompts to generate a repository pattern, author a reusable skill in skills/Generate_DDD_Repository/SKILL.md containing exact boilerplate, ORM constraints, and interface mapping. Any engineer can invoke that skill for 100% consistency.

Personas (Role-Based AI): Scoping the AI’s context so it acts as a specific persona — Senior Security Architect, QA Automation Engineer, Database Admin. A Security Reviewer Persona is strictly constrained to look for OWASP Top 10 vulnerabilities and hardcoded secrets. A QA Persona is constrained to a specific test framework and edge-case generation. This prevents the AI from being a “jack of all trades, master of none.”

14.2 Interview Script

“That’s where an AI-SDLC matures from ‘ad-hoc usage’ into a scalable enterprise platform. I structure the workspace with a dedicated .agents configuration root. At the top level, AGENTS.md is the global governance layer — strict behavioral constraints like compliance requirements and architectural non-negotiables. The real power is in the skills/ directory — standardized SKILL.md files for complex, repeatable tasks act as custom commands the team can invoke instead of writing one-off prompts. Finally, I heavily use Personas — a developer stuck on SQL optimization invokes a DBA Persona pre-loaded with our indexing strategies and schema constraints, rather than asking a generic assistant. Together, Agents, Personas, and Skills form a virtual, highly-specialized engineering team that adheres perfectly to internal architecture.”