-
Notifications
You must be signed in to change notification settings - Fork 155
Added import code review agent skill #2160
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
rohitkumarbhagat
merged 22 commits into
datacommonsorg:master
from
rohitkumarbhagat:code-review-agent
Aug 18, 2026
Merged
Changes from 6 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
049efc2
Add import review signal mining skill
rohitkumarbhagat 82d2679
Add Data Commons import review skill
rohitkumarbhagat 0123785
Clarify import validation guidance and review contracts
rohitkumarbhagat 9d11e9c
Document import review signal merge workflow
rohitkumarbhagat db44eaf
Strengthen data import code review guidelines
rohitkumarbhagat d8bcc2e
Require isolated Python environments in import code reviews
rohitkumarbhagat 1bfc2af
Document agent skill authoring conventions
rohitkumarbhagat ad56c55
Clarify import diagnostics authoring
rohitkumarbhagat 576a5d4
Discover skill link entrypoints from installed skills
rohitkumarbhagat c11cd8b
Merge branch 'master' into code-review-agent
rohitkumarbhagat 0a0b0f6
lint fix
rohitkumarbhagat 6511158
Allow explicitly authorized review publishing
rohitkumarbhagat 7e56eea
Document shared download utility guidance
rohitkumarbhagat 7e4941f
Clarify review target resolution in import code review skill
rohitkumarbhagat 295fc0c
Refine import review skill guidance
rohitkumarbhagat afa479e
Document golden path review guidance
rohitkumarbhagat 1ffa03a
docs: update import guidelines to include GCS artifact retention, sta…
rohitkumarbhagat a8aa0fd
docs: add requirement for node_mcf in manifest.json import_inputs
rohitkumarbhagat 807f8e9
docs: add guidelines for mandatory date consistency and freshness val…
rohitkumarbhagat e52c8b3
docs: update import review guidelines to allow bounded, read-only GCS…
rohitkumarbhagat f17dc95
docs: add critical enforcement requirements for golden summaries and …
rohitkumarbhagat 8f6693a
Merge branch 'master' into code-review-agent
rohitkumarbhagat 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
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
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
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,12 @@ | ||
| # Start a Data Commons import code review | ||
|
|
||
| Use the `dc-import-code-review` skill to review the request below. | ||
|
|
||
| - Resolve the exact staged, unstaged, all-local, branch-comparison, or pull | ||
| request target before reviewing. | ||
| - Review only changed files under `scripts/**` and `statvar_imports/**`. | ||
| - Treat the repository and GitHub as read-only. | ||
|
|
||
| ## Request | ||
|
|
||
| <IMPORT_REVIEW_REQUEST> |
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,13 @@ | ||
| # Start Data Commons import review-signal mining | ||
|
|
||
| Use the `dc-import-review-signal-miner` skill with these inputs: | ||
|
|
||
| - Start time, inclusive: `<START_TIME>` in ISO 8601 UTC. | ||
| - End time, exclusive: `<END_TIME>` in ISO 8601 UTC. | ||
| - Output directory: `<OUTPUT_DIRECTORY>`. | ||
| - Reviewer identities, optional: `<REVIEWERS>` as comma-separated GitHub | ||
| logins, numeric user IDs, or both. | ||
|
|
||
| Follow the skill's import-path boundary, conservative signal criteria, output | ||
| contracts, and read-only safety rules. Produce only the complete comments | ||
| report and the considered-signals projection. |
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,99 @@ | ||
| # Merge mined import review signals | ||
|
|
||
| Apply strong recommendations produced by `dc-import-review-signal-miner` to | ||
| the Data Commons import code-review guidelines. | ||
|
|
||
| ## Inputs | ||
|
|
||
| - Signal output directory: `<SIGNAL_OUTPUT_DIRECTORY>` | ||
| - Data repository path: `<DATA_REPOSITORY_PATH>` | ||
|
|
||
| Ask for either input if it is missing. Do not guess it. | ||
|
|
||
| ## Check the repository | ||
|
|
||
| Resolve the repository root from `<DATA_REPOSITORY_PATH>`. Require a named | ||
| current branch and a clean checkout, including staged, unstaged, and untracked | ||
| files. If it is not clean, stop and list the dirty paths. Never stash, reset, | ||
| discard, or overwrite existing work. | ||
|
|
||
| Apply changes to the current branch. Do not fetch, switch, create, or delete a | ||
| branch. Do not stage, commit, push, or create a pull request. | ||
|
|
||
| Modify only | ||
| `agents/skills/dc-import-code-review/references/guidelines.md` in the data | ||
| repository. | ||
|
|
||
| ## Select the signals | ||
|
|
||
| Require exactly one `import-review-signals-*.md` file in | ||
| `<SIGNAL_OUTPUT_DIRECTORY>`. If none or more than one exists, stop and ask the | ||
| user to disambiguate. | ||
|
|
||
| Treat each recommendation section in that projection as one signal. Use the | ||
| matching `import-review-comments-*.md` report only when more source context is | ||
| needed. Do not process comments marked `Not considered`, reclassify comments, | ||
| or modify either miner report. | ||
|
|
||
| ## Merge the signals | ||
|
|
||
| Compare each signal semantically with the existing guidelines and current | ||
| repository implementation. Assign one disposition: | ||
|
|
||
| - `Added`: The recommendation is strong, general, new, and non-conflicting. | ||
| Add one concise, neutral recommendation bullet under the best existing | ||
| heading. Add a heading only when no existing heading fits. | ||
| - `Already covered`: An existing guideline expresses the same desired | ||
| behavior. Do not replace, rewrite, or duplicate it. | ||
| - `Conflict`: The recommendation contradicts existing guidance or current | ||
| implementation. Do not change the guidelines. | ||
| - `Skipped`: The recommendation is ambiguous, too specific, unsupported, or | ||
| cannot be merged safely. Do not change the guidelines. | ||
|
|
||
| If several signals support the same new guideline, add it once and report a | ||
| decision for every signal. If a signal contains a clearly separable new point, | ||
| add only that point. Otherwise prefer no change. | ||
|
|
||
| Keep the guidelines simple: | ||
|
|
||
| - Phrase positive and corrective signals as neutral recommendations. | ||
| - Preserve existing recommendations and organization. | ||
| - Do not add guideline IDs, severity, confidence, evidence metadata, dates, | ||
| reviewer identities, or source links. | ||
| - Do not duplicate generic repository language or style guidance. | ||
|
|
||
| ## Write the merge report | ||
|
|
||
| Write | ||
| `<SIGNAL_OUTPUT_DIRECTORY>/import-review-signal-merge-<YYYYMMDD-HHMMSS>.md` | ||
| using the current UTC time. Do not overwrite an existing report. | ||
|
|
||
| Include a summary with the projection path, repository root, current branch, | ||
| HEAD commit, and disposition counts. Then include every signal using: | ||
|
|
||
| ```markdown | ||
| ### <SIGNAL RECOMMENDATION> | ||
|
|
||
| - Disposition: Added | Already covered | Conflict | Skipped | ||
| - Source comments: <URLS FROM THE PROJECTION> | ||
| - Existing guidance: <MATCHING OR CONFLICTING GUIDELINE> | None | ||
| - Change: <ADDED GUIDELINE BULLET> | None | ||
| - Rationale: <SPECIFIC REASON FOR THE DECISION> | ||
| ``` | ||
|
|
||
| End the report with checks run, checks not run, changed repository paths, and | ||
| explicit statements that changes were not staged, committed, pushed, or used | ||
| to create a pull request. | ||
|
|
||
| ## Verify and finish | ||
|
|
||
| - Inspect the final diff and confirm no existing guideline was replaced. | ||
| - Confirm the only intended repository edit is `guidelines.md`. If the signal | ||
| output directory is inside the repository, treat the merge report as an | ||
| output artifact and never stage it. | ||
| - Run `git diff --check`. | ||
| - Run `python3 -m unittest agents.common.scripts.skill_contract_test` with the | ||
| repository's configured Python environment when available. Do not install | ||
| dependencies solely for this run; record unavailable checks in the report. | ||
| - Leave all changes unstaged and uncommitted on the current branch. | ||
| - Return the merge-report path, disposition counts, and verification results. |
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.
Uh oh!
There was an error while loading. Please reload this page.