SENG 365 — Software Engineering
2026-11-05
After this lecture you can:
@hardin.bsky.social
I do not use it to mark your assignments.
Emphasize craftsmanship. There is a difference between what is “simple” and what is “easy”.
Simple is hard work. Vibe coding is easy.
AI rewards having a structured, careful development process.
via https://www.arthropod.software
Use the AI to map the codebase, identify dependencies, and help you understand the problem.
Your insights keep the AI on track.
Get the AI to create a detailed implementation plan, perhaps as a Markdown checklist.
This separates the what from the how.
Humans now conduct a thorough design review of the plan.
Look for overly coupled components, poor modifiability, obvious design smells.
The AI translates the plan into code.
Kent Beck suggests this only works with a rigorous test suite (TDD). The tools will optimize, which includes lying to you!
via arthropod.software
Create a project-wide context file in your repo root:
CLAUDE.md for Claude Code.github/copilot-instructions.md for CopilotGEMINI.md for Gemini CLIAGENTS.md: a generic file read by many agents (Codex, Copilot, OpenHands and others), so one file can serve a mixed teamUse the AI to brainstorm the steps in the building process. Give it your project context AND your team’s context (skills, gaps). Work one step at a time.
Now that we’ve wrapped up the brainstorming process, can you compile our findings into a comprehensive, developer-ready specification? Include all relevant requirements, architecture choices, data handling details, error handling strategies, and a testing plan so a developer can immediately begin implementation. Write this to the file
spec.md.
Get your teammates to check the proposed spec. You can also ask other LLMs to revise it.
Then ask the AI for a detailed set of implementation steps. Save it as something like prompt-plan.md.
Add a todo.md so the AI can check steps off as it finishes them.
Run the steps in an agent: Claude Code, Copilot CLI, Gemini CLI, Aider.
Aside: the model is not the tool. The same model behaves differently in different tools.
You need a way to confirm the code does what you want.
Get the AI, maybe a different one, to create some integration tests for what you are looking for.
Always ask for tests as part of the normal workflow.
Keep the integration tests separate: no shared context with the code writer.
What were the warning signs that told you the AI was going off track?
Do this with me, on your own laptop.
git init in itNothing else. The agent’s plan sets up the project.
A JavaFX app that shows the local weather (A4-6 in one go)
Bram, from Jon Udell, is a workspace for working with an agent.
Three levels of ceremony: just do it, worklists, GH Pull Requests.
The agent proposes each change as a worklist item. I read it, then approve, ask for changes, or drop it.
I use it for the research and planning steps, and then kick off the agent for implementation. Integrates nicely with Github (not Gitlab, sadly).
I start with an empty folder and an empty CLAUDE.md (with Bram stuff).
I tell the agent the stack: Java 25, Gradle, JavaFX.
In Bram, I ask the agent questions, one at a time, then ask it to propose a PRD as spec.md.
Watch for: what I correct, and what the agent assumed that I never said. (lots!)
I ask for a plan (CLI: as Markdown checklist), proposed in Bram.
I review the implementation plan as a design before approving it: is anything coupled that should not be?
Small changes are easier to back out.
One slice at a time. Tests first.
I run the tests and read the diff before I accept anything.
Watch for: the Kent Beck warning signs: loops, extras, cheating.
context venn diagram via https://www.philschmid.de/context-engineering
As Simon Willison writes,
The entire game when it comes to prompting LLMs is to carefully control their context—the inputs (and subsequent outputs) that make it into the current conversation with the model.
So how can we do that?
An LLM is trained on vast amounts of general data, like all of Wikipedia and all of GitHub.
But our problem is a particular one, and we don’t know if the LLM’s distribution matches ours.
So we need to steer it to the space of solutions that apply to us.
Another term for this is context engineering.
Context is not free… every token influences the model’s behavior.
Claude Code, Codex and Gemini CLI are harnesses. The model is not the tool.
Six jobs, from Sebastian Raschka:
You keep typing the same instructions.
“Review my code against these design principles.” “Write the log entry in this format.”
A context file loads every time. Most instructions are needed only some of the time.
A skill is a folder of instructions the agent loads only when it needs them.
.claude/skills/design-check/
SKILL.md # name, description, instructions
toolbox.md # extra files the instructions use
---
name: design-check
description: Review my code against the course
toolbox and ask questions about my design
choices. Use when I ask for a design check.
---
Read toolbox.md. For each tool, look for
evidence in the code. Cite file and line.
Ask the tool's question. Do not edit code.
SKILL.mdSo a skill costs a few lines of context until it is used.
/design-check in Claude Code, $design-check in CodexThe description decides whether the agent picks it up. Write it as “use when…”.
| Context file | Skill | |
|---|---|---|
| Loaded | Always | When relevant |
| Holds | Facts and rules for the project | A procedure for one task |
| Example | “Java 25, tests in test/” |
“How to run a design check” |
| Tool | Skill | |
|---|---|---|
| Is | Something the agent can do | Instructions on how to do a task |
| Examples | Read a file, run a command, call an API | Run a design check; write a log entry |
| Runs | The harness runs it, after checks | The agent reads it as text |
| Comes from | The harness, or an MCP server | A folder you write |
A skill tells the agent which tools to use, in what order, and what to look for.
Each tool looks in its own folder:
.claude/skills/.agents/skills/The SKILL.md format is shared, so the same folder works in all of them.
Using AI is an interaction you report. Add an entry to docs/ai-log.md: what you asked, what you got, what you accepted or rejected, and why.

Course home · Neil Ernst ©️