Skip to content

microsoftgbb/corporate-website

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Corporate Website - APM Enterprise Showcase

πŸš€ This project demonstrates APM CLI capabilities - Skills give agents powers, guardrails keep them compliant.

Enterprise-grade web development with AI capabilities + automatic compliance - Watch form-builder skill create contact forms while compliance-rules ensures GDPR compliance.

What APM Dependencies Provide

πŸ“¦ Skills + Guardrails working together:

  • form-builder - React Hook Form + Zod validation patterns (Skill: what agents CAN DO)
  • compliance-rules - GDPR, security, audit requirements (Guardrail: what agents MUST FOLLOW)
  • design-guidelines - Accessibility, UI/UX standards (Guardrail)

The Skill + Guardrails Tension

🎯 The narrative: form-builder gives your agent the power to build forms. compliance-rules ensures those forms are GDPR compliant.

User: "Build a contact form"

β”Œβ”€ form-builder (Skill) ──────────────────────────┐
β”‚ βœ“ React Hook Form for controlled inputs        β”‚
β”‚ βœ“ Zod schema for validation                    β”‚
β”‚ βœ“ Accessible form patterns                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
            ↓ constrained by ↓
β”Œβ”€ compliance-rules (Guardrail) ──────────────────┐
β”‚ βœ“ GDPR consent checkbox required                β”‚
β”‚ βœ“ Data minimization (only collect what's needed)β”‚
β”‚ βœ“ Audit logging for form submissions           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Result: AI builds a production-ready, compliant contact form.

Quick Start (2 minutes)

Note

πŸ“‹ APM Setup Required: First install APM CLI from github/apm-cli - follow their setup guide for tokens and runtime configuration.

# 1. Clone and enter the project
git clone https://github.com/github/corporate-website
cd corporate-website

# 2. Install APM dependencies (compliance + design packages)
apm install

# 3. Generate AGENTS.md with enterprise context
apm compile

# 4. Run your first enterprise workflow
# This will trigger hello-world.prompt.md as defined in apm.yml
apm run start

That's it! Your project now has enterprise-grade AI workflows with automatic compliance and design enforcement.

Example apm.yml - Skills + Guardrails Composition

Here's how skills and guardrails compose together:

name: corporate-website
version: 1.0.0
description: Corporate website with form building and compliance
author: Corporate Team

dependencies:
  apm:
    - danielmeppiel/form-builder        # Skill: form building capability
    - danielmeppiel/compliance-rules    # Guardrail: GDPR, security
    - danielmeppiel/design-guidelines   # Guardrail: UI/UX standards

scripts:
  start: "codex --skip-git-repo-check hello-world.prompt.md"
  
  # Compliance workflows (automatically discovered from dependencies)
  audit: "codex --skip-git-repo-check compliance-audit.prompt.md"
  gdpr-check: "codex gdpr-assessment.prompt.md"
  legal-review: "codex --skip-git-repo-check legal-review.prompt.md"
  
  # Design workflows (automatically discovered from dependencies)
  accessibility: "codex --skip-git-repo-check accessibility-audit.prompt.md"
  design-review: "codex --skip-git-repo-check design-review.prompt.md"
  style-check: "codex style-guide-check.prompt.md"

What You Just Built

  • Enterprise Workflows - Compliance audits, accessibility checks, legal reviews (.prompt.md files)
  • Context Enforcement - GDPR rules, design standards automatically applied to AI responses
  • Dependency Composition - apm_modules/ with proven enterprise packages from other projects
  • Universal Compatibility - Works with any coding agent supporting the Agents.md standard (GitHub Copilot, Codex, etc.)

Key Enterprise Workflows

apm run audit              # Run GDPR compliance audit
apm run accessibility      # Check WCAG 2.1 AA compliance
apm run design-review      # Validate design system adherence
apm run legal-review       # Legal compliance verification
apm run gdpr-check         # Data handling assessment

🧠 Context Optimization Engine

The Challenge: AI agents need exactly the right context for their current task, but loading everything creates cognitive overload, while missing key information breaks workflows.

APM's Innovation: Mathematical algorithms that automatically figure out the best places to put your context (standards, rules, guidelines, policies) so AI agents get exactly what they need, when they need it, without information overload.

How It Works (No Math Degree Required!)

Think of it like organizing a company handbook. You could put everything in one giant manual that everyone carries around, or you could smartly distribute relevant sections to different departments.

APM does this automatically for your project context:

# See what APM is planning to do
apm compile --verbose --dry-run

Real example from this project - APM found 9 different context files (standards, compliance rules, guidelines) and had to decide where to put each one:

🎯 Smart Distribution Results:
β€’ Design standards β†’ Root level (affects 6 different folder types)
β€’ GDPR compliance β†’ Root level (affects 10 different folder types) 
β€’ API development β†’ backend/api/ only (affects 1 specific folder)
β€’ Testing strategy β†’ tests/ only (affects 3 test-related folders)
β€’ React components β†’ Root level (affects 3 component folders)

The Mathematical Magic (Simplified)

The Core Problem: Every instruction needs to be accessible to files that need it, but agents shouldn't be overwhelmed with irrelevant instructions.

APM's Solution: Uses "distribution scores" to decide placement:

  • 0-30% distribution β†’ Place locally (like backend/**/*.py β†’ goes in backend/api/AGENTS.md)
  • 30-70% distribution β†’ Smart multi-placement (verify coverage, fallback to root if needed)
  • 70%+ distribution β†’ Place at root (like **/*.{py,js,ts,tsx} β†’ goes in root AGENTS.md)

Why This Matters:

  • βœ… Coverage Guarantee: Every file can access the instructions it needs
  • ⚑ Efficiency: Agents see mostly relevant context (49.6% efficiency in this project)
  • 🧠 Cognitive Load: No more overwhelming agents with irrelevant standards

Real Results: 5 Smart AGENTS.md Files

Instead of one massive file, APM created 5 targeted context files:

  1. Root /AGENTS.md - Design standards, compliance rules, React patterns (broad patterns)
  2. backend/api/AGENTS.md - FastAPI security, database patterns (backend-specific)
  3. tests/AGENTS.md - Testing strategy, pytest patterns (testing-specific)
  4. docs/AGENTS.md - Documentation standards (docs-specific)
  5. scripts/deployment/AGENTS.md - DevOps patterns (deployment-specific)

The Result: When an AI agent works on backend/api/auth.py, it automatically inherits:

  • Root standards (design + compliance) ← Always relevant
  • Backend-specific API patterns ← Highly relevant
  • No testing or documentation noise ← Clean context

Universal Agent Compatibility

βœ… Works with any coding agent that supports AGENTS.md: GitHub Copilot, Cursor, Claude, Codex, etc.

Architectural Advantage: APM bridges the gap between maintainable governance (modular .instructions.md source files) and universal compatibility (standard AGENTS.md output), with smart optimization ensuring agents get exactly the context they need.


Why APM for Enterprise Development?

Replace inconsistent compliance with engineered enterprise standards:

❌ Before APM:

  • "Add authentication" β†’ unpredictable compliance violations across team
  • Manual accessibility audits catch issues in production
  • Design system violations slip through code review

βœ… With APM Dependencies:

  • Shared context + structured workflows β†’ consistent, compliant outcomes
  • AI agents know GDPR requirements before they start coding
  • Accessibility and design standards enforced automatically

The Power: Your AI agents understand enterprise compliance, accessibility requirements, and design standards from day one.

Technology Stack

  • Frontend: Vanilla HTML, CSS, JavaScript with Vite build system
  • APM Dependencies: Enterprise compliance + design packages
  • AI Compatibility: Works with GitHub Copilot, Claude Code, Codex, and other Agents.md compatible tools

What APM Dependencies Provide

From compliance-rules Package:

  • πŸ”’ GDPR Compliance: Data handling, retention policies, audit trails
  • βš–οΈ Legal Review: Automated compliance checking workflows
  • πŸ“Š Audit Trails: User interaction logging for compliance
  • πŸ›‘οΈ Security Standards: Encryption, authentication requirements

From design-guidelines Package:

  • β™Ώ Accessibility: WCAG 2.1 AA compliance, screen reader support
  • 🎨 Design System: Color palettes, typography scales, component standards
  • πŸ“± Responsive Design: Mobile-first, touch target requirements
  • ⚑ Performance: Optimization guidelines, loading strategies

Available Workflows

Enterprise Compliance

apm run audit           # Full enterprise compliance audit
apm run gdpr-check      # GDPR assessment and data handling review
apm run legal-review    # Legal compliance verification

Design & Accessibility

apm run accessibility   # WCAG 2.1 AA compliance check
apm run design-review   # Design system adherence validation
apm run style-check     # Style guide compliance verification

Development

npm run dev             # Start development server (http://localhost:3000)
npm run build           # Build for production
apm compile             # Generate AGENTS.md from dependencies

Installation Options

Enterprise Setup (Recommended)

git clone https://github.com/github/corporate-website
cd corporate-website
apm install

Development Dependencies

npm install             # Install Node.js dependencies
apm compile             # Generate context from dependencies

Next Steps


Learning Guide β€” Awesome AI Native
A practical companion guide for AI-Native Development: https://danielmeppiel.github.io/awesome-ai-native

A friendly, step-by-step example-driven learning path for AI-Native Development β€” leveraging APM CLI patterns.


APM transforms enterprise development with reliable, compliant AI workflows

About

APM demonstrator app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 30.8%
  • Shell 26.2%
  • Python 19.7%
  • JavaScript 7.6%
  • SCSS 6.6%
  • CSS 4.7%
  • Other 4.4%