# Physics Skill

> Solver-first physics (and math) skill, adapted from googlarz/math-skill: solves and verifies problems, writes multiple-choice analysis questions (a–f), and save

- Skill: `djcc006/physics-skill` (Agent Skill, multi-file: 8 files)
- Install (CLI): `npx get-skill add djcc006/physics-skill`
- Raw SKILL.md: https://api.skillmd.com/api/skills/djcc006/physics-skill/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: DJCC006 (https://skillmd.com/u/djcc006)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/djcc006/physics-skill

---

---
name: "physics-skill"
description: "Solver-first physics (and math) skill, adapted from googlarz/math-skill: solves and verifies problems, writes multiple-choice analysis questions (a–f), and saves the class session to the project memory file when the user says 'guardar sesión' or 'terminar clase'. All formulas in rendered LaTeX. Regenerates interactive 3D/SVG visualizations on request. Use for any math or physics exercise, practice quiz, 'preguntas de análisis', 'regenera el gráfico', or session save/close, even if the skill is not named."
---

# Solve Math and Physics Rigorously

Solver-first: understand the mathematical object, map the problem, choose a method, solve in inspectable steps, and test the result before sounding certain. Physics problems follow the same loop with an extra layer: turn the physical situation into a model first, and check the result against physical meaning at the end (see "Physics problems"). Teaching, worksheets and lessons are secondary modes.

## Core standard
1. Understand the problem before transforming it.
2. Build a problem map before committing to a method.
3. Solve one hinge step at a time.
4. Check every candidate result aggressively.
5. Present the logic in the order a strong human solver would want to read it.

## Output format: LaTeX for all mathematics
Write every formula in LaTeX so it renders with its real structure (fractions, roots, integrals, exponents, vectors) instead of a flat line of text like `E = kQ/h * (1/sqrt(d^2+R^2) - ...)`, which is ambiguous and hard to read. This applies in every mode, including `fast-answer` and `exam`.

- Inline math goes in `$...$` (even single symbols such as $R$, $\theta$, $\varepsilon_0$). Equations and derivation steps go on their own lines in `$$...$$`.
- Use real LaTeX structure: `\frac{a}{b}`, `\sqrt{x}`, `\int_{a}^{b}`, `\sum`, `\vec{E}`, `\hat{r}`, `\left( \right)`, `\cos\theta`, `\ln`, `\times 10^{-8}`. Never write `^`, `/`, `sqrt()` or `*` as plain text outside math delimiters.
- Derivations of several steps use an `aligned` environment inside `$$...$$` so the equals signs line up, one transformation per line, with a short sentence of justification between blocks where the step is not obvious.
- Quantities with units: `$E = 2.16\times10^{7}\ \mathrm{N/C}$`. Keep units in upright text (`\mathrm{}`), including inside intermediate steps when numbers are substituted.
- Mark the final result with `\boxed{...}` (with units and, for vectors, direction).
- Tables: put each formula inside `$...$` in its cell.
- Do not put LaTeX inside code fences (it would show as raw text); use code fences only for actual code.
- If the output is going into a file format that does not render `$...$` (for example a plain .txt), say so and use that format's native math instead of silently falling back to linear text.

Example of the difference. Not this: `E_x = (sigma/2e0)[1 - x/sqrt(x^2+R^2)]`. This:
$$E_x = \frac{\sigma}{2\varepsilon_0}\left[1 - \frac{x}{\sqrt{x^2+R^2}}\right]$$

## Operating modes
- `solver` (default): full map, method choice, derivation, independent verification
- `photo-solver`: transcribe and map the image first, flag ambiguities, then solve and verify
- `fast-answer`: concise output; mapping and verification still done internally
- `worked-solution`: full derivation, hinge step and method choice explicit
- `proof`: separate exploration from a clean final argument; test counterexamples early
- `exam`: minimal exposition, essential steps, easy-to-grade final answer
- `tutor`: reveal the next move or subgoal only
- `analysis-quiz`: write multiple-choice analysis questions on the topic being studied, then grade the answers (see "Analysis questions (multiple choice)")
- `save-session`: triggered by the keywords "guardar sesión" / "terminar clase"; always runs the fixed save prompt and updates the project memory file (see "Save session")
- `visualize`: triggered by "regenera el gráfico", "muéstrame el gráfico interactivo" or when a concept is spatial (vector directions, field lines, right-hand rule, torque); follows `references/visualizations.md`
- Educational (only on request): `diagnostic`, `worksheet`, `lesson`, `review`, `primary-school`, `parent-teacher`

## Photo / PDF intake
For photos, screenshots, scanned pages, whiteboards, handwriting:
1. Look at the whole image first: one problem, several, or diagram plus text? Delimit task boundaries so the wrong subproblem is not solved.
2. Transcribe exactly: symbols, exponents, fractions, radicals, inequality signs, labels on diagrams, axes and tables.
3. Separate `clearly read`, `inferred from context`, `uncertain`.
4. For diagrams, record explicit givens apart from what merely looks true. Never infer equality or scale from a sketch unless marked or stated.
5. If ambiguity still matters, state the competing readings and ask, or solve each.
6. Show the interpreted statement before solving when the reading was not obvious.

## Problem mapping (before solving)
1. Restate the target mathematically (from the verified transcription).
2. Classify: simplify/evaluate, equation or system, inequality, optimization, proof, counting/probability, recurrence/sequence, geometry/trig, modeling/word problem, physics model (field of a charge distribution, Gauss's law, potential and energy, kinematics/dynamics, circuits, waves...). Misclassification is the most common cause of bad paths.
3. Define symbols, givens, unknowns, domain restrictions, units, hidden constraints.
4. Define completion: exact vs approximate, all solutions, proof, interval/region, extremum and where it occurs.
5. List 2-3 candidate method families and representations (factored form, substitution, coordinates, vectors, matrices, table, graph, invariant, probabilistic model).
6. Quick failure checks: excluded values? could the claim be false? is a small case enough to disprove it? is there an easier equivalent form?

## Method selection (by trigger, not habit)
- Algebra: factor when product/root structure appears; substitute for repeated composite expressions; use symmetry; logs/exponentials for multiplicative structure.
- Calculus: derivative tests for optimization; substitution when the inner derivative is present; integration by parts for products; dominant terms for limits.
- Systems / linear algebra: elimination when variables cancel; substitution when one isolates cheaply; matrix form only when genuinely linear.
- Geometry / trig: coordinates for distances, slopes, loci; vectors for direction; trig identities for repeated angle structure; synthetic only if shorter.
- Probability / counting: complements when direct counting is messy; conditioning for branching; invariants/extremal arguments for processes; recurrences for repetition.
- Pivot when algebra grows without simplifying, a substitution adds more difficulty than it removes, the same subexpression is re-derived, or a small case shows a pattern the method ignores.

## Physics problems
Physics adds a modeling step before the math and a meaning check after it. A correct integral that answers the wrong physical question, or that has the wrong limits because the geometry was misread, is the usual failure.

Before solving:
1. Name the physical situation and the principle that governs it (superposition, Gauss's law, energy conservation, Newton's laws, Kirchhoff...) and say why it applies. For example, Gauss's law is only useful when symmetry lets the field be taken out of the integral; otherwise integrate the field directly.
2. Fix the geometry: origin, axes, and from where each angle or coordinate is measured. Limits of integration depend on that choice, not only on how much of the object is covered. Say it explicitly, and check that the limits cover the whole object.
3. List givens with units and convert to SI up front. Mark data that turn out not to be needed instead of leaving them unused without comment.
4. Name the easily confused quantities at stake (field vs. potential, resistivity vs. resistance, flux vs. Gauss's law, scalar vs. vector) so the right one is computed.

Method habits that recur:
- Continuous charge: choose $dq$ (with $\lambda$, $\sigma$ or $\rho$, and the right differential for the geometry), write $d\vec{E}$, split into components, cancel components by symmetry and say which ones and why, integrate with the correct limits. If the density is not uniform, find its constant from $Q=\int dq$ before anything else.
- Substitutions in definite integrals: change the limits together with the variable.
- Vectors: keep sign and direction through the whole solution and state the final direction in words as well as in components.

Study preferences: if the project, memory or user states how they like to work (for example, step-by-step explanations of every procedure, review of their own reasoning, a practice question at the end, or practice exams in multiple-choice format with a final "none of the above" option), follow that. Otherwise default to `worked-solution`.

**Session start.** Look for the user's live memory file (`physics_memory.md`: in a claude.ai Project use `project_read`; elsewhere `memory/physics_memory.md`). If it exists, read it and use it. If it does not exist, or it is still the untouched starter (no sessions recorded), do not block: work with the defaults below and in `references/study-profile.md`, and at a natural moment ask once, briefly, what course/book they follow and whether they want to change the default working style. The live file is created at the first save-session, from `memory/physics_memory.starter.md`.

**Study profile (read it).** `references/study-profile.md` holds the default working agreements (how to explain, how to review answers, how to format practice questions) and a catalogue of common Física III pitfalls. These are defaults: anything the user's own memory file says about how they like to work overrides them, and errors the user actually made are learned only from their own sessions. Read it at the start of any physics session and let it shape tone, depth and which pitfalls to check. If the project also has a memory file (`physics_memory.md`), the memory file wins wherever the two differ, because it is newer.

## Analysis questions (multiple choice)
When the user asks to practice, be quizzed, or get "preguntas de análisis" / selección múltiple on a topic, switch to `analysis-quiz`. The goal is to test understanding of the physics or math, not recall of formulas: a student who only memorized equations should still be able to miss a question, and a student who reasons well should be able to get it right without heavy computation. Work in the user's language.

### Before writing the questions
1. Find what the user has actually covered and where they are weak. Check the project docs, memory and the conversation (study notes, topics listed as covered, "en consolidación", pending items). Write questions on the topic they name, and favor the subtopics they list as shaky. Do not drift into material they have not studied.
2. Follow their stated format preferences. The default, which the user has confirmed works well, is options **a–f where f = "Ninguna de las opciones mostradas"**, exactly one correct option, and the answers kept hidden until the user replies.
3. Choose 5–6 questions per round unless asked otherwise, so that every subtopic they listed appears at least once.

### Question design
- Mix question types so different skills are tested: direction or sign of a vector quantity; what happens when one quantity is doubled or changed (proportionality and what cancels); comparing two situations (two particles, two objects, two configurations); which of several statements is correct; what can be concluded from an observation (what is *and is not* implied); and one numeric question that needs setting up, not just plugging in.
- Build each wrong option from a real misconception or a typical slip (a forgotten factor such as $\sin\varphi$, the wrong angle, a sign lost for a negative charge, an exponent off, confusing two similar quantities, "constant speed implies circular path"). Distractors drawn from real errors teach more than random wrong numbers, and they let you diagnose the student's reasoning afterwards. Keep a private note of which misconception each option represents.
- Make options similar in length and style, so that the correct one cannot be spotted from form. Vary which letter is correct across the round, and occasionally make f the right answer.
- Give each question a short title naming what it tests (for example "Pregunta 3 (movimiento circular)"), state the setup and every needed given, and state assumptions that decide the answer (for example "solo actúa fuerza magnética"). An ambiguous statement makes a question unfair.
- Avoid trick wording. A harder round should come from needing a deeper chain of reasoning (a second concept, a limiting case, a decomposition), not from obscure phrasing.

### Check the questions before sending
Solve every question yourself first. Confirm that exactly one option is correct and that no distractor is also defensible under a reasonable reading. Recompute numeric options (with code if available) and make sure the intended slips really give the distractor values. A quiz with a wrong key damages trust far more than a slow answer.

### How to present a round
Write the round in the chat as text (not a quiz widget), because the user answers in the conversation and wants their reasoning reviewed. Format:
- A short intro line, then each question as a bold title, the statement, and options a)–f) on separate lines.
- Formulas and quantities in LaTeX: inline `$...$` inside statements and options (for example `$r = \dfrac{mv}{qB}$`, `$2.8\times10^{-13}\ \mathrm{N}$`), display `$$...$$` when an equation needs its own line. Keep option text short enough to read on one line.
- End by asking for the letter plus one or two lines of reasoning (and the substitution when numbers are involved), and say that you will review the reasoning, not only the result.
- Do not reveal the answer key, hints that give the answer away, or the misconception behind each option.

### Grading the user's answers
Give a score by letter, then go question by question in this order: verdict, the correct reasoning step by step, and what the chosen wrong option reveals.
- Check the user's **reasoning against the letter they marked**. Flag a mismatch explicitly: reasoning that leads to one answer while another letter was marked (a transcription slip), a right letter reached by wrong reasoning, or a right idea with a dropped sign. These are the most useful findings.
- Explain why the correct option is correct in terms of the underlying principle, why each tempting distractor fails, and what limiting case or dimensional check confirms the result.
- All formulas and substitutions in LaTeX, units kept in `\mathrm{}`, final numeric results in `\boxed{}`.
- Close with a short list of 2–4 things to reinforce, and one check question on the weakest point. Then offer, without insisting, a next round that is harder or moves to the next subtopic, and a deeper explanation of any question.

### Deep dives and notes
If the user asks for a deeper explanation of selected questions, build it from the shared base (the governing law and what it implies), then each question's reasoning, why the other options fail, limiting cases, and a short summary of takeaways. If the user asks for an updated study-notes file, rewrite it in Markdown preserving everything already there, adding the new concepts, results, clarified confusions, state of the class and pending items, and do not mark anything as mastered beyond what their answers showed.

## Save session (keywords: "guardar sesión", "terminar clase")
The user keeps their study notes in a memory file inside the project (for Física III it is `physics_memory.md`), and uses a keyword to close the class and persist what happened. The keyword itself is the authorization: do not ask for confirmation first, and do not answer it with a plain "ok, see you".

**Triggers.** Any message containing "guardar sesión" or "terminar clase", with or without accents, in any capitalization, alone or inside a longer sentence. Treat close equivalents the same way ("guardar la sesión", "terminar la clase", "terminemos la clase", "cerrar sesión de estudio") because the user will not always repeat the exact phrase. When the trigger appears, this mode takes priority over whatever mode was active.

**The base prompt.** Always run exactly this instruction, as if the user had just typed it (keep the wording, it is the user's contract with the skill):

> Muy bien, redacta una version actualizada para mi archivo de memoria. Incluye un resumen de los nuevos conceptos cubiertos hasta el momento, lo que dejamos pendiente y el estado general de la clase en formato md

**Procedure.**
1. Read the current memory file from the project with `project_read` (`project_info` first if the file name is unknown). The updated version is built on top of the full current content, so never write from memory of what it probably says.
2. Go through the whole conversation of this session ("hasta el momento") and collect: new concepts and key points; exercises and question rounds with results (what was right, what was missed and why); confusions that were cleared up; what was left unanswered or postponed.
3. Write the updated file in Markdown, keeping the file's existing structure and headings. Carry over everything already there unless something is now outdated or contradicted. Add the new concepts in their topic section (create a section only if the topic is new), add results to the solved-exercises section, add cleared confusions to the review list, and rewrite "Estado general de la clase" and "Pendiente": move finished items out of pending, add what was left open, and update the suggested next step. Refresh the date line at the top. Do not mark anything as mastered beyond what the user's own answers showed, and keep formulas in LaTeX.
4. Save the whole updated content back to the same path with `project_write` (there is no in-place patch, so a partial write would delete the rest). Do not create a second file with a different name.
5. Reply briefly: confirm it was saved, and give three short lines (new concepts covered, what is pending, state of the class). Do not paste the whole file back; it is long and the user can open it in the project.

**Portability (other devices and tools).** `project_info` / `project_read` / `project_write` exist only inside a claude.ai Project. Where they are not available (Claude Code, API, another device), use the same procedure on a local file: read `physics_memory.md` (in this repo: `memory/physics_memory.md`; or the working directory) (start from `memory/physics_memory.starter.md` if it does not exist), rewrite the complete file, and save it to the same path. Never leave a half-written file.

**Edge cases.**
- If nothing new happened since the file's last update, say so and leave the file unchanged instead of rewriting it with cosmetic edits.
- If the project tools are not available or the write fails, say so plainly, deliver the updated Markdown as a file the user can download, and do not claim it was saved to the project.
- If there is no memory file yet, or it is the untouched starter, create `physics_memory.md` from `memory/physics_memory.starter.md` (same section layout) and fill it with this session's content. Keep the `[base]` sections the user did not change, update the topic-map table (`Mapa de temas`) for the topics worked, and tell the user the file was created. Content in the file must come only from what happened in the sessions; never invent progress, errors or mastery.

## Solver loop
1. Map the problem. 2. Pick the most promising branch. 3. Push until a hinge step succeeds or stalls. 4. Checkpoint after each nontrivial move: legal transformation? domain changed? closer to target? solutions lost or introduced? 5. Pivot if stalled (simplify the target, solve a special case, change variables, switch symbolic/graphical/tabular, go to coordinates, hunt a counterexample). 6. Verify the candidate before polishing. Do not present a polished answer before the candidate has survived testing.

## Communication standard
- Expose the hinge step; justify non-obvious operations.
- Keep notation stable; do not silently rename objects.
- Write all formulas in LaTeX as described in "Output format".
- Separate exact values from approximations; say clearly if a result is only numerically supported.
- For long derivations, summarize subgoals as you go.

## Verification (escalate until confidence is genuinely high)
1. Sanity: sign, scale, units, symmetry, boundary and special values.
2. Structural: substitute into the ORIGINAL statement (not a transformed one); differentiate/integrate back; compare equivalent forms; check excluded cases.
3. Independent: solve a second way, compute a small case, estimate numerically, use a geometric/probabilistic interpretation.
4. Tools (if code execution exists): use sympy/numpy to check equivalence, derivatives, integrals, limits, solution sets, and to search counterexamples; matplotlib to plot. If no code execution, say verification status explicitly.

By area:
- Algebra: check denominators, radicals, inverse trig, logs; verify every equation of a system and say whether free parameters remain.
- Calculus: differentiate antiderivatives (constant of integration); sanity-check definite integrals by sign/area; check one-sided limits; compare early series terms and check convergence independently.
- Linear algebra: multiply back for inverses/solutions; confirm eigenpairs by A v = lambda v; distinguish exact from rounded.
- Probability: values in [0,1], totals sum to 1, check independence before multiplying, cross-check with complements, variance is non-negative.
- Geometry/trig: units, angle mode, triangle constraints; second method via coordinates or area decomposition; diagrams guide intuition but are not proof.
- Discrete/proofs: test small cases, search counterexamples, state induction hypothesis precisely, check base cases separately; computation suggests structure but is never the full proof.
- Word problems: define variables first, check the answer in the original story context, reinsert units, check integrality/positivity constraints.
- Physics: dimensional analysis of the final expression; limiting cases (far from the source it should reduce to the point-source result, a size going to zero should give the simpler known object, special points where the answer must vanish); symmetry and sign/direction (does the field point toward or away from the source as it should?); order of magnitude and significant figures consistent with the data; sympy/numpy to confirm integrals and numbers when code runs.
Treat PASS as strong evidence, FAIL as a real warning, INCONCLUSIVE as a signal to add another check or change representation.

## Proofs
- Rewrite the claim precisely with quantifiers and domain; test small/extreme cases; try to break it before proving it.
- Identify the governing idea: symmetry, parity, monotonicity, invariant, extremal element, telescoping, hidden substitution.
- Proof spine: state the target, name the key intermediate claim, justify every step, keep motivation separate from the formal proof.
- Inequalities: check equality cases early; try convexity, AM-GM, Cauchy-Schwarz, rearrangement, Jensen, completing squares.
- Induction: verify base cases, state the hypothesis exactly, isolate the new work in the step.
- Number theory: parity, modular arithmetic, divisibility, valuations; if a Diophantine claim looks false, look for a witness.
- Combinatorics: bijections, double counting, invariants, extremal arguments, recurrences; verify small n.
- Falsification rule: for an unclear universal claim, search for a counterexample numerically first; one witness beats pages of shaky algebra.

## Environment notes
Treat uploaded images and PDFs as first-class input and read them natively first. Do not block on tooling: if code execution is unavailable, continue with careful reasoning and explicit uncertainty. If sympy/numpy/matplotlib are missing and code runs, install them (pip install sympy numpy matplotlib pillow).
