A TypeScript library that leverages the GitHub Copilot SDK to analyze repository AI enablement readiness and generates consultant-quality Architecture Decision Records (ADRs) with evidence-based scoring, risk assessment, and phased implementation recommendations.
npm install @ankh-studio/copilot-enablement-adrimport CopilotPoweredAssessment from '@ankh-studio/copilot-enablement-adr';
const assessment = new CopilotPoweredAssessment({
repoPath: './my-project',
githubUrl: 'https://github.com/owner/repo',
});
const analysis = await assessment.analyze();
const adr = await assessment.generateADR(analysis);
console.log(adr);- π€ Copilot SDK Powered: Leverages GitHub Copilot's reasoning engine for analysis
- π Focused Data Collection: Simple tools for tech stack and artifact detection
- π Evidence Based Analysis: Copilot interprets signals and provides nuanced insights
- π Consultant Quality ADRs: Professional proposals with contextual recommendations
- π οΈ Tool Based Architecture: Extensible with custom analysis tools
This plugin requires the GitHub Copilot CLI:
# Install Copilot CLI
npm install -g @github/copilot
# Authenticate
copilot auth login# npm
npm install @ankh-studio/copilot-enablement-adr
# yarn
yarn add @ankh-studio/copilot-enablement-adr
# pnpm
pnpm add @ankh-studio/copilot-enablement-adrimport { AIEnablementAssessment } from '@ankh-studio/copilot-enablement-adr';
const assessment = new AIEnablementAssessment();
const result = await assessment.analyze();
console.log(result.techStack.summary);const assessment = new AIEnablementAssessment({
repoPath: '/path/to/repo',
githubUrl: 'https://github.com/owner/repo',
});
const result = await assessment.analyze();
// Access specific data
console.log('Readiness Scores:', result.readinessScores);
console.log('Recommendations:', result.recommendations);
// Generate ADR
const adr = assessment.generateADR(result);copilot plugin install @ankh-studio/copilot-enablement-adr
copilot run ai-enablement-assessment --repo ./my-project- Languages, frameworks, and dependencies
- Infrastructure and SaaS services
- Development tools and build systems
- Database and storage technologies
- Repo Readiness (0-100): Technical foundation and hygiene
- Team Readiness (0-100): Process and capability maturity
- Org Enablement Readiness (0-100): Enterprise and governance readiness
- Foundations - Basic repo clarity and structure
- Build/Test Determinism - Reproducible development workflows
- Documentation Spec Maturity - Adequate context for AI/human understanding
- Repo-Aware AI Guidance - Copilot instructions and conventions
- Evaluation/Verification Loops - Quality gates and review processes
- Tool Augmentation - MCP servers, custom agents and skills
- Memory/Artifact Continuity - ADRs, specs, decision logs, reusable prompts
- Safe Orchestration - Autonomy with guardrails, verification, measurable outcomes
# ADR: AI Enablement Assessment
## Readiness Scores
- **Repo Readiness**: 75/100 - Strong foundation
- **Team Readiness**: 60/100 - Needs process maturity
- **Org Enablement**: 45/100 - Limited governance
## Phased Implementation
### 30 Days
- Add Copilot instructions
- Implement code review process
### 60 Days
- Set up GitHub Advanced Security
- Create evaluation loops{
"readinessScores": {
"repo": 75,
"team": 60,
"org": 45
},
"recommendations": [
{
"priority": "high",
"category": "governance",
"title": "Add Copilot instructions",
"timeframe": "30 days"
}
]
}See CONSUMPTION.md for detailed API documentation and integration examples.
# Clone repository
git clone https://github.com/Ankh-Studio/copilot-enablement-adr.git
cd copilot-enablement-adr
# Install dependencies
npm install
# Development workflow
npm run dev # Watch mode
npm run build # TypeScript compilation
npm run bundle # Bundle for distribution
npm run format # Prettier formatting
npm run lint # Code quality checksThe plugin produces two distribution formats:
npm run build # TypeScript β dist/index.js (17KB)
npm run bundle # Bundled β dist/bundle.js (13.8KB)- dist/index.js - TypeScript compiled output with declarations
- dist/bundle.js - Minified bundle for production use
This plugin follows a simple, direct implementation approach:
copilot-enablement-adr/
βββ index.ts # Main plugin logic and analysis engine
βββ skills/ # Orchestratable skill components
β βββ tech-stack-analyzer/
β βββ security-scanner/
β βββ readiness-scorer/
β βββ adr-generator/
βββ templates/ # ADR and output templates
βββ dist/ # Built distribution files
Design Philosophy
- Small & Sharp: Focused implementation without unnecessary abstraction layers
- Evidence-Based: Analysis grounded in concrete detected signals
- Skill-First: Components designed for future orchestration compatibility
- Composable: Clean upgrade path to richer agent skills without overbuilding
@specfy/stack-analyser- Tech stack detection (700+ technologies)@octokit/rest- GitHub API integration
typescript- Type safety and compilationeslint+prettier- Code qualityesbuild- Fast bundling
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - see LICENSE file for details.
- Issues: GitHub Issues
- Documentation: CONSUMPTION.md
- Discussions: GitHub Discussions
Built with β€οΈ by Ankh Studio