Replace Jinja2 prompt templating with stdlib prompt composition
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Locate the essays, questions, and upskilling prompt composers and their prompt files, then trace how they currently render templates without changing the tutor_lib.agents boundary. Review the existing prompt-rendering tests and documentation first; done means lightweight Python composition replaces the scoped Jinja2 usage, dynamic sections render correctly, tests cover rendering, and documentation is updated.
Written by the indexing model from the issue text.
Description
Context
Jinja2 is currently imported at service startup, which is causing local failures. It is considered overkill for current prompt needs.
Scope
- Essays, questions, and upskilling prompt composers and prompt files.
- Remove scoped Jinja2 dependencies and mentions in documentation.
Acceptance Criteria
- Use stdlib or simple slots for templating.
- Dynamic sections should be built in Python.
- Include tests for prompt rendering.
- No changes to the tutor_lib.agents boundary.
- Documentation must be updated.
Risks
- Prompt drift.
- Whitespace issues.
- Missing placeholders.
Architecture Review
Remove Jinja2; use lightweight Builder-style prompt block functions, not Template Method inheritance.
- Dominant language
- Python
- Stars
- 17
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure-Samples/tutor
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Azure-Samples/tutor#230 ·
-
frontend priority:P2 type:tech-debt
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure-Samples/tutor#224 · 3 comments ·
-
component:ci-cd frontend priority:P1 type:tech-debt
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure-Samples/tutor#223 · 2 comments ·
-
frontend priority:P1 type:feature
Difficulty 5/5 Over a week Newbie friendliness 30/100
Azure-Samples/tutor#222 · 1 comment ·
-
frontend priority:P1 type:tech-debt
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure-Samples/tutor#221 · 2 comments ·
All issues in Azure-Samples/tutor
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100