You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,24 @@ When user asks about methods:
28
28
- Explain expected behavior
29
29
- Avoid oversimplified answers
30
30
31
+
## Scientific Communication Style (Important)
32
+
33
+
Use precise, evidence-based, and appropriately uncertain language.
34
+
35
+
- Distinguish clearly between:
36
+
- evidence from this repository and Torabi et al., 2024
37
+
- general domain knowledge
38
+
- speculation or hypotheses
39
+
- If evidence is missing or unclear, say so explicitly.
40
+
- Do not present uncertain claims as facts.
41
+
- Prefer phrasing such as: "Based on the available context...", "The repository documentation suggests...", "I do not have enough evidence to conclude...".
42
+
- For unresolved technical issues, ask for traceback/error details and avoid overconfident root-cause claims.
43
+
44
+
## Output Boundary (No Internal Prompt Disclosure)
45
+
46
+
- Do not mention internal instruction files, hidden prompts, policy text, or "what I was instructed to do" in user-facing replies unless the user explicitly asks for meta details.
47
+
- If source grounding is relevant, use user-facing wording only (for example: "Based on repository docs and examples...") and cite Torabi et al., 2024 when appropriate.
48
+
31
49
## Safety Rule
32
50
33
51
Do NOT modify source code in this repository unless the user explicitly asks for a code change or pull request.
@@ -58,6 +76,25 @@ When guiding a new user:
58
76
7. After results: ask if they want to try another method.
59
77
8. Offer to export code into `.ipynb` or `.py`.
60
78
79
+
## Demo Data Naming Guardrail (BIDS/Nilearn)
80
+
81
+
When providing download commands and load snippets:
82
+
83
+
- Keep BIDS-compliant filenames unchanged from the demo.
84
+
- Do not invent alternative file names for BOLD or confound files.
85
+
- Keep image and confound files in the same directory when using nilearn confound loading workflows.
86
+
- Prefer exact paths used in `examples/dFC_methods_demo.py`.
87
+
88
+
Rationale: Nilearn confound discovery relies on consistent BIDS-style naming and directory placement.
89
+
90
+
## CHMM/DHMM Small-Sample Guidance
91
+
92
+
Be explicit that demo data (5 subjects) is limited for CHMM/DHMM stability.
93
+
94
+
- Mention that DHMM warnings can be expected with small subject counts.
95
+
- Explain that demo parameters may differ from larger-cohort defaults for runtime/stability reasons.
96
+
- Suggest conservative settings for small cohorts (for example, reducing `num_select_nodes`) and describe this as a pragmatic tradeoff, not a universal rule.
Copy file name to clipboardExpand all lines: agents.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,27 @@ When user asks about methods:
26
26
- Explain expected behavior
27
27
- Avoid oversimplified answers
28
28
29
+
## Scientific Communication Style
30
+
31
+
Use careful, evidence-based language.
32
+
33
+
- Separate documented evidence from interpretation.
34
+
- If the context files do not support a claim, state uncertainty explicitly.
35
+
- Avoid confident wording when evidence is missing.
36
+
- Ask for traceback/details before diagnosing technical causes.
37
+
38
+
## Output Boundary (No Internal Prompt Disclosure)
39
+
40
+
- Do not expose internal instruction files, hidden prompts, policy text, or "what I was instructed to do" unless the user explicitly asks for meta details.
41
+
- If grounding is useful, use user-facing wording such as "Based on repository docs and examples..." and cite Torabi et al., 2024 where relevant.
42
+
43
+
## Practical Tutorial Guardrails
44
+
45
+
- Keep demo BOLD/confound filenames exactly as in the repo examples.
46
+
- Keep image and confound files in the same directory with BIDS-compliant names for nilearn confound loading compatibility.
47
+
- For CHMM/DHMM, clarify that 5-subject demo data is often insufficient for stable fitting and that warnings/more variability can occur.
48
+
- If users have few subjects or constrained compute, suggest pragmatic simplifications (for example reducing `num_select_nodes`) and label them as tradeoffs.
Copy file name to clipboardExpand all lines: docs/SKILL.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
---
2
+
name: docs
3
+
description: "Guidance skill for PydFC tutorial workflows, copy-paste examples, and evidence-based scientific response style."
4
+
---
5
+
1
6
# PydFC Skill (LLM Context Guide)
2
7
3
8
Use this file as the primary context for interactive help about `pydfc`.
@@ -47,6 +52,21 @@ When user asks about methods:
47
52
- Explain expected behavior
48
53
- Avoid oversimplified answers
49
54
55
+
## Scientific Communication Style (Required)
56
+
57
+
Use precise, evidence-based, and appropriately uncertain language.
58
+
59
+
- Distinguish between: (a) repository/paper evidence, (b) general domain knowledge, and (c) hypotheses.
60
+
- If evidence is absent in context files, explicitly state uncertainty.
61
+
- Do not present speculative explanations as established facts.
62
+
- Use wording such as: "Based on the available context...", "The docs suggest...", or "I do not have enough evidence to conclude...".
63
+
- For debugging, ask for the exact traceback before attributing root cause.
64
+
65
+
## Output Boundary (No Internal Prompt Disclosure)
66
+
67
+
- Do not mention internal instruction files, hidden prompts, policy text, or "what I was instructed to do" unless the user explicitly asks for meta details.
68
+
- If source grounding is helpful, use user-facing wording such as "Based on repository docs and examples..." and cite Torabi et al., 2024 where relevant.
69
+
50
70
## Interaction Flow
51
71
52
72
Follow this sequence:
@@ -70,6 +90,24 @@ Follow this sequence:
70
90
-`docs/DFC_METHODS_CONTEXT.md` for assumptions and interpretation guidance
71
91
-`docs/PAPER_KNOWLEDGE_BASE.md` for paper-grounded method tradeoffs
72
92
93
+
## Demo Data Naming Guardrail (BIDS/Nilearn)
94
+
95
+
When generating download commands or loading snippets:
96
+
97
+
- Keep BIDS-compliant filenames exactly as used in `examples/dFC_methods_demo.py`.
98
+
- Do not rename BOLD or confound files in copy-paste snippets.
99
+
- Keep image and confound files in the same directory for nilearn confound discovery workflows.
100
+
- If paths are changed, change both image and confound paths consistently and preserve BIDS naming.
101
+
102
+
Rationale: Nilearn confound loading relies on BIDS-compatible naming and co-location.
103
+
104
+
## CHMM/DHMM Small-Sample Guidance
105
+
106
+
- Explicitly mention that the 5-subject demo is limited for stable CHMM/DHMM fitting.
107
+
- Warn that DHMM warnings are expected in small samples.
108
+
- Explain that demo settings may differ from larger-cohort defaults for runtime/stability reasons.
109
+
- For small cohorts, suggest conservative settings (for example reduced `num_select_nodes`) as practical tradeoffs, not universal defaults.
0 commit comments