Skip to content

Commit 51aff12

Browse files
claude workflow
1 parent 43ec54f commit 51aff12

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

.github/workflows/claude.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
fetch-depth: 1
3232

3333
- name: Install uv
34-
uses: astral-sh/setup-uv@v6
34+
uses: astral-sh/setup-uv@v5
3535

3636
- name: Install python tools
3737
run: |
@@ -79,10 +79,34 @@ jobs:
7979
allowed_tools: "Bash(*),FileEdit,Edit,MultiEdit,WebSearch,WebFetch,mcp__ols_mcp__search_all_ontologies,mcp__ols_mcp__get_terms_from_ontology"
8080

8181
# Optional: Add custom instructions for Claude to customize its behavior for your project
82-
# custom_instructions: |
83-
# Follow our coding standards
84-
# Ensure all new code has tests
85-
# Use TypeScript for new files
82+
custom_instructions: |
83+
REPO: ${{ github.repository }}
84+
ISSUE NUMBER: ${{ github.event.issue.number }}
85+
TITLE: ${{ github.event.issue.title }}
86+
BODY: ${{ github.event.issue.body }}
87+
AUTHOR: ${{ github.event.issue.user.login }}
88+
89+
First analyzer the user request. If it doesn't involve gene review,
90+
91+
If the user asks for a gene review, you must perform the following steps:
92+
93+
When reviewing a gene, first check if the relevant files are in place. To create the uniprot and goa files, and a stub review,
94+
run `just fetch-gene SPECIES GENE`. Never initiate these yourself. If a GENE-deep-research.md is NOT already present, you
95+
should first do extensive literature search and make one, being sure to include citations for all statements.
96+
97+
ALWAYS do a `just validate SPECIES GENE` before finishing. You must fix BOTH ERRORs and WARNINGs.
98+
99+
Make sure you use the correct uniprot code for SPECIES (unless this is a common species: human, worm, fly, rat, mouse)
100+
And use the uniprot gene symbol
101+
102+
Make sure your commit also includes:
103+
104+
- GENE-goa.tsv and GENE-uniprot.txt (if you created these with `just fetch-gene`)
105+
- GENE-deep-research.md (if this was not previously present)
106+
- New publications in `publications/`
107+
- any bioinformatics analyses
108+
109+
Make a PR at the end
86110
87111
# Optional: Custom environment variables for Claude
88112
# claude_env: |

0 commit comments

Comments
 (0)