Skip to content
Merged
26 changes: 13 additions & 13 deletions .github/agentics/repo-audit-analyzer.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Conduct a comprehensive audit of the target repository to discover patterns, ine

## Current Context

- **Target Repository**: ${{ inputs.repository || 'FStarLang/FStar' }}
- **Target Repository**: ${{ inputs.repository }}
- **Analysis Date**: $(date +%Y-%m-%d)
- **Cache Location**: `/tmp/gh-aw/cache-memory/repo-audits/`

Expand All @@ -26,7 +26,7 @@ Check if this repository has been analyzed before:
mkdir -p /tmp/gh-aw/cache-memory/repo-audits/

# Check for previous analysis
REPO_SLUG=$(echo "${{ inputs.repository || 'FStarLang/FStar' }}" | tr '/' '_')
REPO_SLUG=$(echo "${{ inputs.repository }}" | tr '/' '_')
if [ -f "/tmp/gh-aw/cache-memory/repo-audits/${REPO_SLUG}.json" ]; then
echo "Found previous analysis:"
cat "/tmp/gh-aw/cache-memory/repo-audits/${REPO_SLUG}.json"
Expand All @@ -39,7 +39,7 @@ Use GitHub API to collect basic repository information:

```bash
# Repository info
gh api "repos/${{ inputs.repository || 'FStarLang/FStar' }}" --jq '{
gh api "repos/${{ inputs.repository }}" --jq '{
name: .name,
full_name: .full_name,
description: .description,
Expand All @@ -58,10 +58,10 @@ gh api "repos/${{ inputs.repository || 'FStarLang/FStar' }}" --jq '{
}'

# Contributors
gh api "repos/${{ inputs.repository || 'FStarLang/FStar' }}/contributors?per_page=10" --jq '.[] | {login: .login, contributions: .contributions}'
gh api "repos/${{ inputs.repository }}/contributors?per_page=10" --jq '.[] | {login: .login, contributions: .contributions}'

# Languages
gh api "repos/${{ inputs.repository || 'FStarLang/FStar' }}/languages"
gh api "repos/${{ inputs.repository }}/languages"
```

## Phase 1: Deep Research - Project Understanding
Expand All @@ -73,7 +73,7 @@ Analyze the repository structure to understand the project:
```bash
# Clone repository for deep analysis
REPO_DIR="/tmp/repo-analysis"
git clone "https://github.com/${{ inputs.repository || 'FStarLang/FStar' }}.git" "$REPO_DIR" --depth 1
git clone "https://github.com/${{ inputs.repository }}.git" "$REPO_DIR" --depth 1

cd "$REPO_DIR"

Expand Down Expand Up @@ -145,7 +145,7 @@ Analyze all GitHub Actions workflows in detail:

```bash
# List all workflows
gh api "repos/${{ inputs.repository || 'FStarLang/FStar' }}/actions/workflows" --jq '.workflows[] | {
gh api "repos/${{ inputs.repository }}/actions/workflows" --jq '.workflows[] | {
name: .name,
path: .path,
state: .state,
Expand Down Expand Up @@ -188,7 +188,7 @@ Analyze recent workflow runs to identify patterns:

```bash
# Recent workflow runs (last 30 days)
gh api "repos/${{ inputs.repository || 'FStarLang/FStar' }}/actions/runs?per_page=100&created=>=$(date -d '30 days ago' +%Y-%m-%d 2>/dev/null || date -v-30d +%Y-%m-%d)" --jq '.workflow_runs[] | {
gh api "repos/${{ inputs.repository }}/actions/runs?per_page=100&created=>=$(date -d '30 days ago' +%Y-%m-%d 2>/dev/null || date -v-30d +%Y-%m-%d)" --jq '.workflow_runs[] | {
id: .id,
name: .name,
status: .status,
Expand Down Expand Up @@ -247,7 +247,7 @@ Analyze issue history to identify recurring problems:

```bash
# Recent issues (last 90 days)
gh api "repos/${{ inputs.repository || 'FStarLang/FStar' }}/issues?state=all&per_page=100&since=$(date -d '90 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -v-90d +%Y-%m-%dT%H:%M:%SZ)" --jq '.[] | {
gh api "repos/${{ inputs.repository }}/issues?state=all&per_page=100&since=$(date -d '90 days ago' +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -v-90d +%Y-%m-%dT%H:%M:%SZ)" --jq '.[] | {
number: .number,
title: .title,
state: .state,
Expand Down Expand Up @@ -353,7 +353,7 @@ Create a detailed analysis report with actionable recommendations:
```markdown
# 🔍 Repository Audit & Agentic Workflow Opportunities Report

**Repository**: ${{ inputs.repository || 'FStarLang/FStar' }}
**Repository**: ${{ inputs.repository }}
**Analysis Date**: $(date +%Y-%m-%d)
**Audit Type**: Comprehensive (code + workflows + issues + patterns)

Expand Down Expand Up @@ -601,7 +601,7 @@ safe-outputs:

## 📚 Repository-Specific Recommendations

### Custom Insights for ${{ inputs.repository || 'FStarLang/FStar' }}
### Custom Insights for ${{ inputs.repository }}

[Based on actual analysis, provide specific recommendations that are unique to this repository, not generic advice]

Expand Down Expand Up @@ -666,11 +666,11 @@ After generating the report, save analysis data for future reference:

```bash
# Save repository metadata
REPO_SLUG=$(echo "${{ inputs.repository || 'FStarLang/FStar' }}" | tr '/' '_')
REPO_SLUG=$(echo "${{ inputs.repository }}" | tr '/' '_')

cat > "/tmp/gh-aw/cache-memory/repo-audits/${REPO_SLUG}.json" << EOF
{
"repository": "${{ inputs.repository || 'FStarLang/FStar' }}",
"repository": "${{ inputs.repository }}",
"analysis_date": "$(date +%Y-%m-%d)",
"primary_language": "[detected language]",
"workflow_count": [N],
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/agent-performance-analyzer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/agent-persona-explorer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/ai-moderator.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/archie.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/artifacts-summary.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/audit-workflows.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/blog-auditor.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/brave.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/breaking-change-checker.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/campaign-generator.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .github/workflows/changeset.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .github/workflows/ci-coach.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/ci-doctor.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/cli-consistency-checker.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/cli-version-checker.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .github/workflows/cloclo.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .github/workflows/code-scanning-fixer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .github/workflows/code-simplifier.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading