Skip to content

MasaruYusa/ma-process-qa-bot

Repository files navigation

🤝 M&A Process QA Bot

ルールベースのM&AプロセスQ&Aシステム - APIキー不要のシンプルなCLI Bot

概要

M&A(合併・買収)プロセスに関する質問に回答する対話型CLIアプリケーションです。 10件のよくある質問と回答をデータベースに搭載し、キーワードマッチングで適切な回答を返します。

特徴:

  • ✅ APIキー不要(外部API呼び出しなし)
  • ✅ ルールベースのシンプルな実装
  • ✅ TypeScriptで型安全
  • ✅ 対話型CLIインターフェース
  • ✅ テストカバレッジ完備

インストール

npm install

使い方

開発モードで起動

npm run dev

ビルドして実行

npm run build
npm start

対話例

========================================
🤝 M&Aプロセス QA Bot
========================================

📚 データベース: 10件のQ&Aを搭載

💡 使い方:
  - M&Aに関する質問を入力してください
  - "help" でヘルプを表示
  - "topics" で利用可能なトピックを表示
  - "exit" または "quit" で終了

質問を入力してください > デューデリジェンスとは?

【質問】デューデリジェンスとは?

【回答】
デューデリジェンス(Due Diligence)は、M&Aにおける買収前の詳細調査プロセスです。
財務、法務、ビジネス、ITなど多角的な観点から対象企業を調査し、リスクや価値を評価します。
通常2-3ヶ月程度かかります。

開発

テスト実行

npm test              # テスト実行
npm run test:watch    # Watch mode
npm run test:coverage # カバレッジ付き

ビルド・型チェック

npm run build        # TypeScriptビルド
npm run typecheck    # 型チェック
npm run lint         # Lintチェック

Project Structure

ma-process-qa-bot/
├── src/              # Source code
│   └── index.ts     # Entry point
├── tests/           # Test files
│   └── example.test.ts
├── .claude/         # AI agent configuration
│   ├── agents/      # Agent definitions
│   └── commands/    # Custom commands
├── .github/
│   ├── workflows/   # CI/CD automation
│   └── labels.yml   # Label system (53 labels)
├── CLAUDE.md        # AI context file
└── package.json

Miyabi Framework

This project uses 7 autonomous AI agents:

  1. CoordinatorAgent - Task planning & orchestration
  2. IssueAgent - Automatic issue analysis & labeling
  3. CodeGenAgent - AI-powered code generation
  4. ReviewAgent - Code quality validation (80+ score)
  5. PRAgent - Automatic PR creation
  6. DeploymentAgent - CI/CD deployment automation
  7. TestAgent - Test execution & coverage

Workflow

  1. Create Issue: Describe what you want to build
  2. Agents Work: AI agents analyze, implement, test
  3. Review PR: Check generated pull request
  4. Merge: Automatic deployment

Label System

Issues transition through states automatically:

  • 📥 state:pending - Waiting for agent assignment
  • 🔍 state:analyzing - Being analyzed
  • 🏗️ state:implementing - Code being written
  • 👀 state:reviewing - Under review
  • ✅ state:done - Completed & merged

Commands

# Check project status
npx miyabi status

# Watch for changes (real-time)
npx miyabi status --watch

# Create new issue
gh issue create --title "Add feature" --body "Description"

Configuration

Environment Variables

Required variables (see .env.example):

  • GITHUB_TOKEN - GitHub personal access token
  • ANTHROPIC_API_KEY - Claude API key (optional for local development)
  • REPOSITORY - Format: owner/repo

GitHub Actions

Workflows are pre-configured in .github/workflows/:

  • CI/CD pipeline
  • Automated testing
  • Deployment automation
  • Agent execution triggers

Note: Set repository secrets at: https://github.com/MasaruYusa/ma-process-qa-bot/settings/secrets/actions

Required secrets:

  • GITHUB_TOKEN (auto-provided by GitHub Actions)
  • ANTHROPIC_API_KEY (add manually for agent execution)

Documentation

Support

License

MIT


✨ Generated by Miyabi

About

Autonomous development powered by Agentic OS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published