ワンクリックで
analyze-brownfield
Analyze Brownfield Project methodology and workflow
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Analyze Brownfield Project methodology and workflow
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | analyze-brownfield |
| description | Analyze Brownfield Project methodology and workflow |
| agent | architect |
| subtask | false |
Parameter:* mode (optional, default: interactive)
Purpose:* Definitive pass/fail criteria for task completion
Checklist:*
acceptance-criteria:
- [ ] All project markers analyzed
type: acceptance-criterion
blocker: true
validation: |
Assert tech stack, frameworks, standards, workflows analyzed
error_message: "Acceptance criterion not met: Incomplete analysis"
- [ ] Recommendations generated
type: acceptance-criterion
blocker: true
validation: |
Assert analysis.recommendations has at least one item
error_message: "Acceptance criterion not met: No recommendations generated"
- [ ] Conflicts identified if present
type: acceptance-criterion
blocker: false
validation: |
Assert potential conflicts flagged for review
error_message: "Warning: Conflict detection may be incomplete"
Strategy:* graceful-degradation
Common Errors:*
Error:* No Project Markers Found
Error:* Config Parse Error
Error:* Permission Denied
Analyze an existing project to understand its structure, tech stack, coding standards, and CI/CD workflows before Kord AIOS integration. This task provides recommendations for safe integration and identifies potential conflicts.
Execute the brownfield analyzer on the target project:
const { analyzeProject, formatMigrationReport } = require('./brownfield-analyzer');
const targetDir = process.cwd(); // or specified directory
const analysis = analyzeProject(targetDir);
The analysis returns comprehensive information about the project:
BrownfieldAnalysis Structure:*
interface BrownfieldAnalysis {
// Basic flags
hasExistingStructure: boolean; // Has src/, lib/, tests/, etc.
hasExistingWorkflows: boolean; // Has CI/CD configurations
hasExistingStandards: boolean; // Has linting/formatting configs
// Merge strategy
mergeStrategy: 'parallel' | 'manual'; // Recommended approach
// Detected stack
techStack: string[]; // ['Node.js', 'TypeScript', 'Python', 'Go', 'Rust']
frameworks: string[]; // ['React', 'Vue', 'Angular', 'Next.js', 'Express', etc.]
version: string | null; // Project version from package.json
// Config paths
configs: {
eslint: string | null;
prettier: string | null;
tsconfig: string | null;
flake8: string | null;
packageJson: string | null;
requirements: string | null;
goMod: string | null;
githubWorkflows: string | null;
gitlabCi: string | null;
};
// Detected settings
linting: string; // 'ESLint', 'Flake8', 'none'
formatting: string; // 'Prettier', 'Black', 'none'
testing: string; // 'Jest', 'Vitest', 'pytest', 'none'
// Integration guidance
recommendations: string[];
conflicts: string[];
manualReviewItems: string[];
// Summary
summary: string;
}
Show the formatted analysis report:
const report = formatMigrationReport(analysis);
console.log(report);
Sample Report Output:*
╔══════════════════════════════════════════════════════════════════════╗
║ BROWNFIELD ANALYSIS REPORT ║
╠══════════════════════════════════════════════════════════════════════╣
║ ║
║ Tech Stack: Node.js, TypeScript ║
║ Frameworks: React, Next.js ║
║ ║
║ Linting: ESLint ║
║ Formatting: Prettier ║
║ Testing: Jest ║
║ ║
║ Existing Workflows: Yes ║
║ Merge Strategy: manual ║
╠══════════════════════════════════════════════════════════════════════╣
║ RECOMMENDATIONS ║
╠══════════════════════════════════════════════════════════════════════╣
║ ║
║ • Preserve existing ESLint configuration - Kord AIOS will adapt ║
║ • Keep existing Prettier settings - Kord AIOS coding-standards.md will d ║
║ • Review existing CI/CD before adding Kord AIOS workflows ║
║ • Kord AIOS will use existing tsconfig.json settings ║
║ • Next.js detected - use pages/ or app/ structure ║
╠══════════════════════════════════════════════════════════════════════╣
║ 📋 MANUAL REVIEW REQUIRED ║
╠══════════════════════════════════════════════════════════════════════╣
║ ║
║ • Review 3 existing GitHub workflow(s) for potential conflicts ║
╚══════════════════════════════════════════════════════════════════════╝
Based on the analysis, follow the recommended merge strategy:
| Strategy | Meaning | Actions |
|---|---|---|
parallel | Safe to proceed with standard Kord AIOS setup | Use setup-project-docs directly |
manual | Existing CI/CD requires careful review | Review workflows, then proceed |
For each item in analysis.manualReviewItems:
Review GitHub Workflows:*
# List existing workflows
ls -la .github/workflows/
# Check for potential conflicts with Kord AIOS workflows
# Look for: quality-gate.yml, release.yml, staging.yml
Review GitLab CI:*
# Check .gitlab-ci.yml for existing stages
cat .gitlab-ci.yml | grep -E "^[a-z]+:"
Review CircleCI:*
# Check CircleCI config
cat .circleci/config.yml
For each item in analysis.conflicts:
docs/architecture/ exists:*
docs/legacy-architecture/Other conflicts:*
After analysis and review, proceed based on findings:
If mergeStrategy is 'parallel':*
# Direct integration
setup-project-docs
If mergeStrategy is 'manual':*
# First review workflows, then
setup-project-docs --merge
Console Report (default):*
analyze-brownfield
JSON Output:*
analyze-brownfield --format json > analysis.json
Summary Only:*
analyze-brownfield --format summary
# Output: Tech Stack: Node.js, TypeScript | Frameworks: React | Standards: ESLint/Prettier | CI/CD: Existing workflows detected | Recommended Strategy: manual
This task is typically followed by:
setup-project-docs - Generate project documentationdocument-project - Create comprehensive brownfield architecture doccreate-brownfield-story - Create enhancement stories for existing projectsExecute story development with selectable automation modes to accommodate different developer preferences, skill levels, and story complexity.
Set up a Kord-aligned documentation baseline (no legacy frameworks)
Create Next Story Task methodology and workflow
Validate Next Story Task methodology and workflow
advanced-elicitation methodology and workflow
No checklists needed - this task facilitates brainstorming sessions, validation is through user interaction methodology and workflow