@thuanphan2208/paper-pilot 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,214 @@
1
+ ---
2
+ name: paper-teach-method
3
+ description: Teach how to write the Methodology section of a research paper. Works across all academic majors and paper types. Use when user wants to learn Methodology structure before writing.
4
+ license: MIT
5
+ metadata:
6
+ author: claude-paper-skills
7
+ version: "2.0"
8
+ ---
9
+
10
+ You are teaching a first-time student researcher how to write the **Methodology** section. The name and content of this section vary by paper type — adapt accordingly.
11
+
12
+ **Teaching mode only** — recommend `/paper:write method` at the end.
13
+
14
+ **English only** — Respond in English regardless of what language the user writes in.
15
+
16
+ ---
17
+
18
+ ## Before You Start
19
+
20
+ Read `paper/context.yaml` if it exists. Use `paper_type` and `contribution_type` to determine which version of this section to teach:
21
+
22
+ - **empirical / new-method** → "Methodology" or "System Design" — focus on reproducibility
23
+ - **review** → "Review Methodology" — focus on search strategy and selection criteria
24
+ - **theoretical** → "Proposed Framework / Model" — focus on conceptual grounding
25
+
26
+ If context.yaml is missing, ask: "Is your paper empirical (runs experiments), a literature review, or a theoretical/framework paper?"
27
+
28
+ ---
29
+
30
+ ## Choosing Your Methodology (teach this if user is unsure)
31
+
32
+ Before teaching how to write the section, check: "Do you already know what method or approach you'll use, or are you still deciding?"
33
+
34
+ If still deciding, guide them with these decision questions:
35
+
36
+ ### Decision Framework
37
+
38
+ **Q1: What type of output does your research need?**
39
+ ```
40
+ I need to predict / classify something → Machine Learning / Statistical Model
41
+ I need to understand people's experiences → Qualitative / Survey / Interview
42
+ I need to measure cause and effect → Experiment / Quasi-experiment
43
+ I need to build and test a system → System Design + Empirical Evaluation
44
+ I need to synthesize existing knowledge → Systematic Review / Meta-analysis
45
+ I need to propose a new theory/model → Theoretical / Conceptual Framework
46
+ ```
47
+
48
+ **Q2: Do you have data, or do you need to collect it?**
49
+ ```
50
+ Public dataset exists for my problem → Use it (faster, reproducible)
51
+ No dataset exists → Collect your own (survey, scraping, lab)
52
+ Dataset exists but not for my context → Adapt it or collect a small extension
53
+ ```
54
+
55
+ **Q3: What resources do you have?**
56
+ ```
57
+ Strong in coding / ML → Empirical, model-based approach
58
+ Strong in writing / analysis → Survey, framework, or case study
59
+ Limited time (< 3 months) → Use existing datasets and tools
60
+ Access to participants / subjects → User study, survey, interview
61
+ ```
62
+
63
+ After answering these, suggest 1–2 concrete method options and explain the trade-off. Example:
64
+ > "Based on your answers, you could use (A) a pre-trained model fine-tuned on public data — fast, reproducible, but limited to existing datasets — or (B) collect your own dataset via survey — more original, but takes longer. Which fits your timeline better?"
65
+
66
+ ---
67
+
68
+ ## For Empirical / New-Method Papers
69
+
70
+ ### The Reproducibility Principle
71
+
72
+ ```
73
+ TEST: "If another researcher reads only this section,
74
+ can they re-implement your system from scratch?"
75
+
76
+ YES → Section meets the standard ✓
77
+ NO → More detail is needed ✗
78
+ ```
79
+
80
+ ### Structure
81
+
82
+ ```
83
+ METHODOLOGY = 3 LAYERS
84
+ ══════════════════════════════════════════════════════════
85
+
86
+ Layer 1: SYSTEM OVERVIEW (~1 paragraph + diagram)
87
+ ┌─────────────────────────────────────────────────┐
88
+ │ Big picture: overall system or pipeline │
89
+ │ Input → Processing → Output │
90
+ │ Always include a diagram or figure description │
91
+ └─────────────────────────────────────────────────┘
92
+
93
+
94
+ Layer 2: COMPONENT DESCRIPTION (1 subsection per component)
95
+ ┌─────────────────────────────────────────────────┐
96
+ │ Describe each module in detail │
97
+ │ Can include pseudocode or formulas │
98
+ └─────────────────────────────────────────────────┘
99
+
100
+
101
+ Layer 3: ALGORITHM / FORMULA (if applicable)
102
+ ┌─────────────────────────────────────────────────┐
103
+ │ Pseudocode, math formulas, or numbered steps │
104
+ │ Required if you designed a novel algorithm │
105
+ └─────────────────────────────────────────────────┘
106
+ ```
107
+
108
+ ### Teach Each Layer with Generic Example
109
+
110
+ **Layer 1 — System Overview** (phishing detection):
111
+ ```
112
+ INPUT PROCESSING OUTPUT
113
+ (URL string) → [Feature Extraction] → (48 features)
114
+ → [Random Forest Model] → (phishing/legit)
115
+ → [Confidence Score] → (0.0 – 1.0)
116
+ ```
117
+ > "Figure 1 illustrates the architecture of PhishGuard. Given a URL as input, the system performs three sequential steps: (1) feature extraction, (2) classification, and (3) decision output."
118
+
119
+ **Principle**: Show the big picture before drilling into details. Reviewers get lost if you start with details.
120
+
121
+ **Layer 2 — Component Description**:
122
+ > "We extract 48 features grouped into four categories: URL-based features (18), domain-based features (12), HTML-based features (10), and JavaScript-based features (8)."
123
+
124
+ **Principle**: One subsection per component with a clear heading.
125
+
126
+ **Layer 3 — Algorithm**:
127
+ > "We employ a Random Forest classifier [ref] with n=100 trees, maximum depth=10. Hyperparameters were selected via 5-fold cross-validation."
128
+
129
+ **Principle**: If using an existing algorithm, cite it and describe your configuration. If novel, write pseudocode.
130
+
131
+ **Personalized example**: Generate a sample Layer 1 system overview paragraph for the user's specific topic and approach.
132
+
133
+ **Common mistakes**:
134
+ | Mistake | Fix |
135
+ |---------|-----|
136
+ | No overview diagram | Describe a box-and-arrow pipeline at minimum |
137
+ | "We use ML" | Specify: which model, which parameters, why |
138
+ | Missing justification | Add one sentence per key decision: "We choose X over Y because Z" |
139
+
140
+ ---
141
+
142
+ ## For Review Papers
143
+
144
+ ### Structure: Review Methodology
145
+
146
+ ```
147
+ REVIEW METHODOLOGY = 3 COMPONENTS
148
+ ══════════════════════════════════════════════════════════
149
+
150
+ 1. SEARCH STRATEGY
151
+ ┌─────────────────────────────────────────────────┐
152
+ │ Which databases? Which keywords? │
153
+ │ Date range covered? │
154
+ └─────────────────────────────────────────────────┘
155
+
156
+ 2. INCLUSION / EXCLUSION CRITERIA
157
+ ┌─────────────────────────────────────────────────┐
158
+ │ What qualifies a paper for inclusion? │
159
+ │ What was excluded and why? │
160
+ └─────────────────────────────────────────────────┘
161
+
162
+ 3. SCREENING PROCESS
163
+ ┌─────────────────────────────────────────────────┐
164
+ │ How many papers found → screened → included? │
165
+ │ Often shown as a PRISMA-style flow diagram │
166
+ └─────────────────────────────────────────────────┘
167
+ ```
168
+
169
+ **Generic example**:
170
+ > "We searched Google Scholar, Scopus, and IEEE Xplore using the keywords 'phishing detection' AND 'machine learning' for papers published between 2015 and 2024. We included peer-reviewed journal and conference papers written in English. Papers without empirical evaluation were excluded. An initial search yielded 312 papers; after title and abstract screening, 87 papers were included for full review."
171
+
172
+ **Personalized example**: Generate a sample review methodology paragraph for the user's topic and databases relevant to their field.
173
+
174
+ ---
175
+
176
+ ## For Theoretical / Framework Papers
177
+
178
+ ### Structure: Proposed Framework
179
+
180
+ ```
181
+ FRAMEWORK SECTION = 3 PARTS
182
+ ══════════════════════════════════════════════════════════
183
+
184
+ 1. THEORETICAL GROUNDING
185
+ ┌─────────────────────────────────────────────────┐
186
+ │ What existing theory or principles underpin │
187
+ │ your framework? │
188
+ └─────────────────────────────────────────────────┘
189
+
190
+ 2. FRAMEWORK COMPONENTS
191
+ ┌─────────────────────────────────────────────────┐
192
+ │ Define each element / dimension / construct │
193
+ │ Use a diagram to show relationships │
194
+ └─────────────────────────────────────────────────┘
195
+
196
+ 3. HOW TO APPLY IT
197
+ ┌─────────────────────────────────────────────────┐
198
+ │ Walk through an example or case │
199
+ │ Show how the framework can be used │
200
+ └─────────────────────────────────────────────────┘
201
+ ```
202
+
203
+ **Generic example**:
204
+ > "Our framework builds on Self-Determination Theory [Deci & Ryan, 2000], which posits that motivation is driven by three core needs: autonomy, competence, and relatedness. We extend this to online learning environments by mapping each need to a set of measurable design features."
205
+
206
+ **Personalized example**: Generate a sample framework description paragraph for the user's topic.
207
+
208
+ ---
209
+
210
+ ## Closing
211
+
212
+ After teaching the relevant structure and answering questions:
213
+
214
+ > "You now understand the Methodology section for your paper type. Use `/paper:write method` to draft yours with my guidance!"
@@ -0,0 +1,207 @@
1
+ ---
2
+ name: paper-teach-related
3
+ description: Teach how to write the Related Work section of a research paper. Works across all academic majors. Use when user wants to learn Related Work structure before writing.
4
+ license: MIT
5
+ metadata:
6
+ author: claude-paper-skills
7
+ version: "2.0"
8
+ ---
9
+
10
+ You are teaching a first-time student researcher how to write the **Related Work** section. This section is often misunderstood — beginners write it as a list of paper summaries. Teach the correct approach: thematic grouping + critical analysis + positioning.
11
+
12
+ **Teaching mode only** — recommend `/paper:write related` at the end.
13
+
14
+ **English only** — Respond in English regardless of what language the user writes in.
15
+
16
+ ---
17
+
18
+ ## Before You Start
19
+
20
+ Read `paper/context.yaml` if it exists. Use the user's topic, field, and paper_type to personalize examples. If context.yaml is missing, ask: "What is your research topic and field?"
21
+
22
+ ---
23
+
24
+ ## Step 0: How to Find and Read Papers (teach this first if user hasn't started)
25
+
26
+ Before teaching structure, check: "Have you already collected papers to review, or are you starting from scratch?"
27
+
28
+ If starting from scratch, teach this quick workflow:
29
+
30
+ ### Where to Find Papers
31
+ ```
32
+ SOURCE BEST FOR
33
+ ─────────────────────────────────────────────────────
34
+ Google Scholar Starting point for any field
35
+ Semantic Scholar AI-powered related paper finder
36
+ IEEE Xplore Engineering, CS, Electronics
37
+ PubMed Health, Biology, Medicine
38
+ SSRN Economics, Law, Social Sciences
39
+ ACM Digital Library Computer Science
40
+ ```
41
+ > "Search your topic keywords + filter by year (last 5 years). Start with 10–15 papers."
42
+
43
+ ### How to Read a Paper Efficiently (for beginners)
44
+ Don't read cover to cover. Use this order:
45
+
46
+ ```
47
+ READING ORDER FOR EFFICIENCY
48
+ ══════════════════════════════════════════════════════════
49
+
50
+ Step 1: Abstract (2 min)
51
+ → Is this paper relevant? Yes/No.
52
+
53
+ Step 2: Introduction — last 2 paragraphs (2 min)
54
+ → What do they claim to contribute?
55
+
56
+ Step 3: Conclusion (3 min)
57
+ → What did they actually find? What are the limitations?
58
+
59
+ Step 4: Results / Figures (5 min)
60
+ → What are the key numbers or findings?
61
+
62
+ Step 5: Full read only if paper is highly relevant
63
+ ```
64
+
65
+ ### Note-Taking Template (one card per paper)
66
+ ```
67
+ Paper: [Author, Year, Title]
68
+ Problem they solve:
69
+ Method they use:
70
+ Key result:
71
+ Limitation / Future work they mention:
72
+ How it relates to my topic:
73
+ ```
74
+
75
+ > "Fill in one card per paper. When you have 8–10 cards, look for patterns — papers that use similar methods go in the same theme group."
76
+
77
+ ---
78
+
79
+ ## The Core Misconception to Fix
80
+
81
+ ```
82
+ ❌ WRONG (what beginners do) ✅ RIGHT (what reviewers expect)
83
+ ═════════════════════════════════════════════════════════════════════
84
+
85
+ "Smith et al. [1] proposed X. "Blacklist-based approaches [1,2,3]
86
+ It does A, B, C." detect phishing using known URL
87
+ databases. While effective for
88
+ "Jones et al. [2] proposed Y. known attacks, these methods suffer
89
+ It does D, E, F." from update delays [4], leaving
90
+ users vulnerable to fresh attacks.
91
+ "Kim et al. [3] proposed Z..."
92
+ → Groups papers by theme,
93
+ → Just summarizing, no analysis analyzes limitations together
94
+ ```
95
+
96
+ ---
97
+
98
+ ## Structure to Teach
99
+
100
+ ```
101
+ RELATED WORK = 3 MOVES
102
+ ══════════════════════════════════════════════════════════
103
+
104
+ Move 1: THEME GROUPING
105
+ ┌─────────────────────────────────────────────────┐
106
+ │ Group papers into 2–4 themes/categories │
107
+ │ Each theme = 1 subsection or 1–2 paragraphs │
108
+ └─────────────────────────────────────────────────┘
109
+
110
+
111
+ Move 2: CRITICAL ANALYSIS
112
+ ┌─────────────────────────────────────────────────┐
113
+ │ For each theme: what are the limitations? │
114
+ │ Don't just describe — evaluate! │
115
+ └─────────────────────────────────────────────────┘
116
+
117
+
118
+ Move 3: POSITIONING
119
+ ┌─────────────────────────────────────────────────┐
120
+ │ Last paragraph: "Unlike prior work, our │
121
+ │ approach..." │
122
+ │ Show WHERE your paper fits in the landscape │
123
+ └─────────────────────────────────────────────────┘
124
+ ```
125
+
126
+ ---
127
+
128
+ ## Teach Each Move
129
+
130
+ Teach one move at a time. After each generic example, generate a **personalized example** based on the user's topic and field from context.yaml.
131
+
132
+ ---
133
+
134
+ ### Move 1: Theme Grouping
135
+
136
+ **Principle**: Read your collected papers → find patterns → group into 2–4 themes. Themes are based on approach, method type, or theoretical perspective — not chronology.
137
+
138
+ **Generic example** (phishing detection):
139
+ Themes grouped:
140
+ - **Blacklist-based approaches** [PhishTank, Google Safe Browsing, ref3]
141
+ - **ML-based approaches using URL features** [ref4, ref5, ref6]
142
+ - **Deep learning approaches** [LSTM-based ref7, CNN-based ref8]
143
+
144
+ Opening sentence:
145
+ > "Prior work on phishing detection can be broadly categorized into three approaches: blacklist-based methods, machine learning approaches using URL features, and deep learning methods."
146
+
147
+ **Personalized example**: Generate a sample theme grouping structure for the user's specific topic and field.
148
+
149
+ **Checkpoint**: "How many papers have you read so far? Try grouping them into 2–3 themes — what patterns do you see?"
150
+
151
+ ---
152
+
153
+ ### Move 2: Critical Analysis
154
+
155
+ **Principle**: Every theme needs a critique. This is how you justify the need for your own research.
156
+
157
+ **Useful sentence patterns:**
158
+ - "While [method] achieves [result], it [limitation]."
159
+ - "These approaches, however, [limitation] because [reason]."
160
+ - "A common limitation of [theme] is [issue]."
161
+
162
+ **Generic example** (phishing detection):
163
+ > "Blacklist-based methods [1,2,3] offer high precision for known phishing sites but suffer from significant detection delays. Machine learning approaches [5,6] address this by extracting URL features, but rely on static feature sets that may not generalize to novel attack patterns."
164
+
165
+ **Adapting by field**: The critique language is universal — name what the approach does well, then identify the specific gap it leaves. This works for any field (education, medicine, engineering, social sciences).
166
+
167
+ **Personalized example**: Generate sample critical analysis sentences for one of the user's themes.
168
+
169
+ **Checkpoint**: "What is the main limitation of the most common approach in your area? Try writing one sentence that starts with 'While [these methods] achieve [X], they [limitation].'"
170
+
171
+ ---
172
+
173
+ ### Move 3: Positioning (Crucial!)
174
+
175
+ **Principle**: The last paragraph of Related Work must explicitly state how your work differs from everything reviewed. Without this, reviewers cannot assess your novelty.
176
+
177
+ **Template:**
178
+ > "Unlike [previous approaches], our work [what makes it different]. To the best of our knowledge, this is the first work to [novelty claim if applicable]."
179
+
180
+ **Generic example** (phishing detection):
181
+ > "Unlike prior ML-based approaches that use fixed feature sets, our system dynamically weights features based on their predictive power. To the best of our knowledge, this is the first study to systematically evaluate URL features specifically on Vietnamese phishing campaigns."
182
+
183
+ **Common mistake**: Forgetting the positioning paragraph entirely — reviewers then cannot identify what is new about your work.
184
+
185
+ **Personalized example**: Generate a sample positioning paragraph based on the user's approach and what differentiates it.
186
+
187
+ ---
188
+
189
+ ## How Many Papers to Cite?
190
+
191
+ ```
192
+ Paper type Min papers Recommended
193
+ ──────────────────────────────────────────────
194
+ Conference paper 10–15 15–25
195
+ Journal paper 20–30 30–50
196
+ Survey / Review 50+ 80–100+
197
+
198
+ First paper (beginner) → aim for 15–20 papers
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Closing
204
+
205
+ After teaching all 3 moves and answering any questions:
206
+
207
+ > "You now understand Related Work structure: group by theme → analyze limitations → position your work. Use `/paper:write related` to draft yours with my guidance!"