-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Add weekly research update skill and automation #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
dcaefc4
feat: add weekly research update skill and automation
jeremyeder 8655c19
fix: address CodeRabbit review comments
jeremyeder 8d939a9
style: apply black formatting to assessors
jeremyeder 7bf3700
style: fix import order in update_research.py
jeremyeder 796f9c3
style: fix ruff linting errors
jeremyeder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| name: Weekly Research Update | ||
|
|
||
| on: | ||
| schedule: | ||
| # Every Monday at 9 AM UTC | ||
| - cron: '0 9 * * 1' | ||
| workflow_dispatch: # Manual trigger | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| update-research: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.12' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r scripts/requirements.txt | ||
|
|
||
| - name: Run research update script | ||
| id: research | ||
| env: | ||
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| python scripts/update_research.py || echo "changes_made=false" >> "$GITHUB_OUTPUT" | ||
| echo "changes_made=true" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Create Pull Request | ||
| if: steps.research.outputs.changes_made == 'true' | ||
| uses: peter-evans/create-pull-request@v6 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| commit-message: 'docs: update research report with latest findings' | ||
| branch: automated/research-update | ||
| delete-branch: true | ||
| title: 'Weekly Research Update: Agent-Ready Codebase Attributes' | ||
| body: | | ||
| ## Automated Research Update | ||
|
|
||
| This PR contains weekly updates to the AgentReady research report based on: | ||
| - Recent publications on AI-assisted development | ||
| - New best practices from authoritative sources | ||
| - Updated citations and references | ||
|
|
||
| **Review Checklist**: | ||
| - [ ] All citations include valid URLs | ||
| - [ ] Updates are relevant to attribute definitions | ||
| - [ ] Document structure is preserved | ||
| - [ ] Version number incremented appropriately | ||
| - [ ] Date updated to current | ||
|
|
||
| **Generated by**: Weekly Research Update workflow | ||
| **Triggered**: ${{ github.event_name }} | ||
| **Run ID**: ${{ github.run_id }} | ||
| labels: | | ||
| documentation | ||
| automated | ||
| research | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix
changes_madeoutput logic so PRs only open when updates occur.Right now:
will always end by writing
changes_made=true, so the PR step runs even when there are no updates or when the script errors.A minimal fix is to gate the output on the script’s exit code:
Note: because the script currently exits
1both for “no changes” and for errors, this wrapper treats both cases aschanges_made=falseand the job as success. If you want to distinguish real failures, consider giving the script a separate non‑1 error code and updating the wrapper accordingly.Also applies to: 42-43
🤖 Prompt for AI Agents