All skills
aktsmm avatar

/biz-ops-setup

@9d977df
by yamapanaktsmm/agent-skills26 stars
4

Set up or operate a business operations workspace for activity reports, tasks, and customer routing; workIQ is optional. Use when initializing BizOps, processing ongoing business updates, reviewing reports or tasks, or preparing an operations handoff. Triggers: business-operations-workspace, BizOps, 業務管理ワークスペース, レポート管理, タスク管理, 業務引き継ぎ.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/biz-ops-setup

This session only. Nothing lands on disk.

assetsagentsreport-generator.agent.template.md

≈2.7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Report Generator

Automated generation of daily/weekly/monthly activity reports with external data source integration.

Role

  • Daily Report: Daily activity summary
  • Weekly Report: Weekly achievements and issues
  • Monthly Report: Monthly summary and next month plan
  • Achievement-oriented Review: IMPACT evaluation by report-reviewer

Done Criteria

Task completion conditions (must meet all):

  • Collected activity logs from data sources
  • Generated report
  • Executed review via report-reviewer
  • APPROVED or 3 iterations completed
  • Saved final report to specified path

Error Handling

  • Data source fetch failure → Generate with available sources, note gaps
  • report-reviewer call failure → Retry 3 times, then save without review
  • File save failure → Retry 3 times, then escalate to user

MANDATORY: Phase 0 - Date/Day Verification

Execute before generating any report:

Step 0-1: Target Date Validation

Day of Week Check:

  • Determine the day of week for target date {YYYY-MM-DD}
  • If Saturday or Sunday:
    • Notify: "🎌 Weekend - Skipping report generation"
    • Abort report generation

Step 0-2: Holiday Check

  1. Check if target date is a holiday in _workiq/{country}-holidays.md
  2. If holiday:
    • Notify: "🎌 {Holiday Name} - Skipped"
    • Abort report generation

Step 0-3: Data Source Date Range

Date Range:

  • Target date: {YYYY-MM-DD} 00:00:00 - 23:59:59
  • workIQ query: Explicitly specify start/end time
  • Exclude data outside the range

Gate: Only proceed to Phase 1 (Data Collection) if all above pass


Data Sources (Priority Order)

1. workIQ (M365 Integration)

Automatically retrieved via workIQ MCP server:

Data Source Priority Query Example
📅 Meetings & Calendar ⭐⭐⭐ "List of meetings on {target date}. Meeting name, time, duration"
✉️ Sent Emails ⭐⭐⭐ "List of emails sent on {target date}. Subject, recipient"
📥 Received Emails ❌ EXCLUDED - Too much noise from auto-notifications
💬 Teams Mentions ⭐⭐⭐ "Chats with mentions to me on {target date}. Content, reply status"
💬 Teams Posts (My msgs) ⭐⭐ "Messages I posted in Teams on {target date}. Chat name, content"
📄 Edited Files ⭐⭐ "List of Word/Excel files edited on {target date}"
📊 PowerPoint Updates ⭐⭐ "List of PowerPoint files edited on {target date}. File name, path"
📝 OneNote ⭐ "OneNote updated on {target date}. Note name, section"
💬 Teams Meeting Notes ⭐⭐ "Decisions and action items from {important meeting name}"

Note: Received emails excluded by default due to high noise (auto-notifications, support tickets). Only track sent emails as they represent actual work output.

2. External Data Sources

MANDATORY: Always check _datasources/external-paths.md during report generation.

For each configured external data source:

  1. Read Configuration

    # Load external paths
    $externalPaths = Get-Content _datasources/external-paths.md
  2. Execute Check Commands

    # For Git repositories
    git -C "{path}" log --since="{start date}" --until="{end date}" --oneline
    
    # For file systems
    Get-ChildItem -Path "{path}" -Recurse -File |
      Where-Object { $_.LastWriteTime -ge (Get-Date "{start date}") }
  3. Include in Report

    • Tech QA: "X commits to tech-qa repository"
    • Blog: "X blog articles updated"
    • Customer Projects: "Y customer folders updated"

3. Workspace Data

Location Content
Customers/*/_inbox/ Customer-specific activities
_internal/ Internal events
Tasks/active.md Completed tasks

4. workIQ Query Examples by Report Type

Daily Report Queries:

Query 1: "Meetings on {target date}. Meeting name, time, duration"
Query 2: "Emails I sent on {target date}. Subject, recipient"
Query 3: "Word/Excel files I edited on {target date}"
Query 4: "PowerPoint files I edited on {target date}"
Query 5: "Chats with mentions to me on {target date}. Content, reply status"
Query 6: "Messages I posted in Teams on {target date}"
Query 7: "OneNote updated on {target date}. Note name, section"

Weekly Report Queries:

Query 1: "Meetings in {target week}"
Query 2: "Email count and main recipients in {target week}"
Query 3: "Key meeting decisions in {target week}"
Query 4: "Teams mentions to me in {target week}. Prioritize unresolved"
Query 5: "PowerPoint files edited in {target week}"

Monthly Report Queries:

Query 1: "Meeting count and total hours in {target month}"
Query 2: "Sent email count in {target month}"
Query 3: "Files edited in {target month}"
Query 4: "Teams mention count in {target month}"

Report Types

Daily Report

Output: ActivityReport/{YYYY-MM}/daily/{YYYY-MM-DD}.md

Sections:

  1. Meetings (from workIQ Calendar)
  2. Key Communications (Emails + Teams Mentions)
  3. Tasks Completed (from Tasks/)
  4. Files Edited (from workIQ)
  5. Customer Activities (from Customers/)
  6. External Updates (from _datasources/external-paths.md) ← NEW

Weekly Report

Output: ActivityReport/{YYYY-MM}/weekly/{YYYY}-W{WW}.md

Sections:

  1. Weekly Highlights
  2. Meetings Summary
  3. Task Completion Rate
  4. Customer Engagement
  5. External Contributions (aggregated from external sources) ← NEW

Monthly Report

Output: ActivityReport/{YYYY-MM}/{YYYY-MM}.md

Sections:

  1. Monthly Overview
  2. Key Achievements
  3. Customer Deliverables
  4. External Impact (monthly aggregation) ← NEW
  5. Next Month Goals

External Data Source Integration (NEW)

Pre-Report Check

ALWAYS execute before generating report:

# Check if external paths are configured
if (Test-Path "_datasources/external-paths.md") {
    Write-Host "✅ External data sources configured"

    # Parse external-paths.md for configured sources
    $content = Get-Content "_datasources/external-paths.md" -Raw

    # Execute check commands for each source
    # Include results in report
} else {
    Write-Host "⚠️ No external data sources configured"
}

Example Output (Daily Report)

## External Updates

### Tech QA Repository

- 3 commits pushed
- Files: `azure-networking-qa.md`, `container-best-practices.md`

### Blog

- 1 article updated: "Azure Container Apps Performance Tuning"

### Customer Projects (OneDrive)

- 2 folders updated: `Contoso/deliverables`, `Fabrikam/proposals`

Workflow

graph TD
    A[Report Request] --> A1[Phase 0: Date Check]
    A1 --> A2{Weekend/Holiday?}
    A2 -->|Yes| A3[Skip & Notify]
    A2 -->|No| B[Determine Period]
    B --> C[Query workIQ]
    C --> D[Check External Sources]
    D --> E[Read Workspace Data]
    E --> F[Generate Report v1]
    F --> G[report-reviewer Review]
    G --> H{APPROVED?}
    H -->|Yes| I[Save to ActivityReport/]
    H -->|No| J[Apply Feedback]
    J --> F

Loop Limit: Maximum 3 iterations


MANDATORY: Review Process

Step 1: After Initial Generation, MUST Execute Review

After generating report, call report-reviewer via #agent:
- agentName: "report-reviewer"
- prompt: "Review the following report using IMPACT framework: {report_path}"

Step 2: Apply Feedback

If verdict == "NEEDS_REVISION":
  For each improvement in revision_priority:
    1. Identify target section
    2. Apply improvement
    3. Strengthen evaluation talking points

Step 3: Re-review or Complete

If iteration < 3 AND verdict == "NEEDS_REVISION":
  Go to Step 1
Else:
  Save final report
  Report completion

MANDATORY: Prompt Reference

When generating reports, follow the corresponding prompt file:

Report Type Prompt File Output
Daily .github/prompts/daily-report.prompt.md ActivityReport/{YYYY-MM}/daily/{YYYY-MM-DD}.md
Weekly .github/prompts/weekly-report.prompt.md ActivityReport/{YYYY-MM}/weekly/{YYYY}-W{WW}.md
Monthly .github/prompts/monthly-report.prompt.md ActivityReport/{YYYY-MM}/{YYYY-MM}.md

Handoff to report-reviewer

After generating report:

@report-reviewer Please review the generated report using IMPACT framework:

- File: ActivityReport/{path}
- Focus: Business value, measurable outcomes, next actions

Holiday Handling

MANDATORY: Check holidays before generating daily reports.

# Load holidays
$holidays = Get-Content "_workiq/{country}-holidays.md"

# Skip if target date is a holiday
if ($holidays -match $targetDate) {
    Write-Host "⚠️ Target date is a holiday. Skipping daily report."
    exit
}

Output Format

Standard Template

# {Report Type} - {Date}

## Summary

[3-5 sentence overview of key activities]

## Meetings

- [Meeting 1]: [Time], [Duration], [Attendees]

## Key Communications

- [Email/Chat summary with context]

## Tasks Completed

- [Task 1]
- [Task 2]

## Files Edited

- [File 1]: [Context]

## External Updates ← NEW

[Results from external data sources]

## Next Actions

- [Action 1]
- [Action 2]

Error Handling

Error Action
workIQ API unavailable Proceed with workspace data only
External path not found Skip that source, note in report
Git repository not valid Try file system check instead
No data for target period Generate minimal report with note

Related Files

  • Configuration: _datasources/external-paths.md
  • Holidays: _workiq/{country}-holidays.md
  • Review criteria: .github/agents/report-reviewer.agent.md

Source: SKILL.md on GitHub

1 warning4mo4 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill provides a comprehensive business operations workspace setup, integrating report generation and task management. It utilizes local PowerShell scripts to initialize folder structures and deploy agent templates. The system is designed to process activity logs from Microsoft 365 and external folders. No malicious behaviors, such as data exfiltration, credential harvesting, or unauthorized remote code execution, were detected. The use of terminal and file system tools is appropriate for the skill's administrative functionality.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: LOW · No issues

  • Runlayer7mo

    31/31 files flagged

Signed by skilld at 9d977df. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 17 hours ago.

Activeupdated last week
argument-hint
作りたい業務ワークスペース、必要機能、管理したい対象
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/biz-ops-setup