Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a4fa8a3
#2920 add copilot instructions
jeffreyad Feb 17, 2026
461c728
#2920 update sync options
jeffreyad Feb 17, 2026
f0ead4e
#2920 add push trigger for workflow
jeffreyad Feb 18, 2026
9f157cd
chore: update GitHub Copilot instructions from admiraldev
actions-user Feb 18, 2026
ff89ed4
#2920 run styler
jeffreyad Feb 18, 2026
16fa669
Merge branch '2920-add-copilot-instructions' of https://github.com/ph…
jeffreyad Feb 18, 2026
d81e653
chore: update GitHub Copilot instructions from admiraldev
actions-user Feb 18, 2026
520639b
Merge branch 'main' into 2920-add-copilot-instructions
jeffreyad Feb 18, 2026
903cc15
chore: update GitHub Copilot instructions from admiraldev
actions-user Feb 18, 2026
d4fb32a
#2920 add generic agent instructions
jeffreyad Feb 18, 2026
d6ec19f
chore: update AI assistant context from admiraldev
actions-user Feb 18, 2026
877b651
#2920 update agent script + styler
jeffreyad Feb 18, 2026
540d1ae
chore: update AI assistant context from admiraldev
actions-user Feb 18, 2026
8ce023b
#2920 fix agent script
jeffreyad Feb 18, 2026
d8a1e92
chore: update AI assistant context from admiraldev
actions-user Feb 18, 2026
56c446c
#2920 styler
jeffreyad Feb 18, 2026
1b7bfde
chore: update AI assistant context from admiraldev
actions-user Feb 18, 2026
bb9e9e6
Merge branch 'main' into 2920-add-copilot-instructions
jeffreyad Feb 18, 2026
556e006
chore: update AI assistant context from admiraldev
actions-user Feb 18, 2026
89a6eee
Merge branch '2920-add-copilot-instructions' of https://github.com/ph…
jeffreyad Feb 23, 2026
4c8514c
chore: update AI assistant context from admiraldev
actions-user Feb 23, 2026
b0bdbad
#2920 rename AGENT to AGENTS and add to .Rbuildignore
jeffreyad Feb 26, 2026
61ea857
#2920 update workflow to create PR
jeffreyad Feb 26, 2026
235378d
#2920 remove date generated so it won't trigger changes
jeffreyad Feb 26, 2026
eb6e527
Remove relative links
jeffreyad Feb 27, 2026
2cd4b30
styler
jeffreyad Feb 27, 2026
3e8eda9
Update .Rbuildignore
jeffreyad Feb 27, 2026
45198c2
Update AGENTS.md
jeffreyad Feb 27, 2026
787088b
Prepare to move to admiralci
jeffreyad Mar 2, 2026
d611568
Add workflow to call admiralci
jeffreyad Mar 5, 2026
484549b
Update workflow trigger
jeffreyad Mar 5, 2026
90d0bfe
Merge branch 'main' into 2920-add-copilot-instructions
jeffreyad Mar 5, 2026
ded91bc
Temporarily add push trigger
jeffreyad Mar 5, 2026
316bb59
Update paths
jeffreyad Mar 5, 2026
735818c
Delete files to regenerate from admiralci
jeffreyad Mar 5, 2026
e158645
Push change
jeffreyad Mar 6, 2026
f4904d3
add admiralci ref
jeffreyad Mar 6, 2026
fdfb01a
Update schedule
jeffreyad Mar 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
^admiral.*\.tar\.gz$
^admiral.*\.tgz$
^\.lycheeignore$
^AGENTS\.md$
^tests/testthat/AGENTS\.md$
^staged_dependencies.yaml$
^inst/dev_dependencies.R$
^vignettes/articles$
Expand Down
40 changes: 40 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# GitHub Copilot Instructions - admiral Development

**Auto-generated:** 2026-02-23 19:17:54
**Optimized for:** GitHub Copilot code completion
**Complete guidelines:** See `AGENTS.md` files for full context

⚠️ **DO NOT EDIT MANUALLY** - Run `source('.github/scripts/sync_admiraldev_copilot.R')` to update

## Admiral Code Completion Patterns

### Function Names (verb_object_detail)
- `derive_var_base()` - Single variable derivation
- `derive_vars_merged()` - Multiple variables from merge
- `derive_param_tte()` - Parameter derivation
- `compute_age_years()` - Vector computation
- `assert_data_frame()` - Input validation

### Argument Patterns
Standard admiral function signature:
- `dataset` - Always first argument
- `by_vars = exprs(...)` - Grouping variables
- `order = exprs(...)` - Sorting expressions
- `new_var = VAR` - New variable (symbol)
- `filter = PARAM == "VALUE"` - Filtering expression

### Common Expressions
- `subject_keys = exprs(STUDYID, USUBJID)`
- `by_vars = exprs(USUBJID, PARAMCD)`
- `order = exprs(AVISITN, desc(ADY))`
- `filter = PARAMCD == "TEMP"`

### Test Patterns
- Use `tribble()` for test data
- `expect_true("DERIVED" %in% names(result))`
- `expect_false(is.grouped_df(result))`
- `expect_error(..., "Required variable.*missing")`

---

*This file is optimized for GitHub Copilot code completion. For complete admiral development guidelines, see `AGENTS.md` and `tests/testthat/AGENTS.md`.*
22 changes: 22 additions & 0 deletions .github/workflows/sync-admiralci-agents.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Create the AGENTS.md

on:
push:
branches:
- 2920-add-copilot-instructions
paths:
- '.github/workflows/sync-admiralci-agents.yml'
workflow_dispatch:
schedule:
- cron: '0 8 6 * *'

jobs:
create-agents-md:
permissions:
contents: write
pull-requests: write
uses: pharmaverse/admiralci/.github/workflows/create-agents-md.yml@231-add-workflow-to-create-ai-agentmd-files
with:
package_name: admiral
target_branch: 2920-add-copilot-instructions
admiralci_ref: 231-add-workflow-to-create-ai-agentmd-files
Loading