Ask company

From mshadmanrahman/pm-pilot · View interactive version

Ask company is an AI agent skill from the GitHub repository mshadmanrahman/pm-pilot. | Enterprise knowledge assistant template. Searches Confluence, Jira, Slack, and internal docs to answer questions about your company. Users customize the company name, MCP sources, and team structure. Triggers on: "ask [company]", "who owns", "which team", "how does [thing] work".

How to use this skill

Skill file

Ask [Company]

Template for a company-specific knowledge assistant. Searches internal tools to answer questions about people, processes, ownership, architecture, and history.

Configuration

Customize these values for your organization before use:

company_name: "YourCompany"        # Replace with your company name
trigger_phrase: "ask yourcompany"   # Replace with your trigger

# MCP tools available (uncomment what you have connected)
sources:
  - confluence    # Wiki, specs, runbooks
  - jira          # Issues, epics, project tracking
  - slack         # Channel history, decisions
  # - github      # Repos, PRs, code search
  # - gmail       # Email threads
  # - notion      # Pages and databases
  # - linear      # Issues and projects

# Team structure (optional, improves routing)
teams:
  # - name: "Platform"
  #   keywords: ["infra", "deployment", "CI/CD", "kubernetes"]
  # - name: "Product"
  #   keywords: ["PRD", "roadmap", "feature", "user research"]
  # - name: "Data"
  #   keywords: ["analytics", "pipeline", "BigQuery", "metrics"]

When to Activate

Input

A natural language question about the company. Examples:

Execution

Step 1: Classify the Question

Determine the question type to optimize search strategy:

| Type | Examples | Primary Sources |

|:-----|:---------|:---------------|

| Ownership | "Who owns X?", "Which team?" | Confluence, Jira (component owners) |

| Process | "How does X work?" | Confluence (runbooks, docs), Slack (recent discussions) |

| History | "Why did we decide X?" | Slack (threads), Confluence (RFCs, ADRs) |

| Status | "Where is X at?" | Jira (epics, issues), GitHub (PRs) |

| People | "Who knows about X?" | Jira (assignees), Confluence (authors), Slack (active in topic) |

Step 2: Expand Search Terms

Generate 3-5 search variations. Internal tools often use different terminology:

Step 3: Parallel Search (Fan-Out)

Search all configured sources in parallel using expanded terms.

| Source | Method | What to Extract |

|:-------|:-------|:----------------|

| Confluence | CQL search | Relevant pages, runbooks, architecture docs |

| Jira | JQL search | Related epics, issues, component ownership |

| Slack | Message search | Recent discussions, decisions, announcements |

| GitHub | Code/issue search | Implementation details, READMEs |

Step 4: Synthesize Answer

Combine findings into a direct answer. Prioritize:

  1. Official documentation (Confluence) over informal (Slack)
  2. Recent information over old
  3. Authoritative sources (owners, leads) over general mentions

Output Format

## {Restated question as heading}

{Direct answer in 2-4 sentences}

### Key People
- **{Name}**: {Role in this context} ({source})

### Relevant Documents
- [{Document title}]({link}): {1-line description}

### Recent Activity
- {Date}: {What happened} ({source})

### Sources Searched
{List sources checked, including those that returned no results}

Rules

Fallback

If the answer cannot be found:

  1. State clearly: "I could not find a definitive answer."
  2. List what was searched and what was found (even partial matches).
  3. Suggest: "Try asking in #{relevant-channel}" or "Check with {likely owner}."
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.