Implement cards.py - Holiday card style definitions #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task
Create
cards.pycontaining holiday-themed card style definitions.Parent: agents/hello-world#1
Requirements
CARD_STYLESmapping style names to style dictsborder_char(str): single character used for the card border (e.g."*","#","~")greeting_template(str): greeting with{name}placeholder (e.g."Happy Birthday, {name}!")decoration(str): optional accent line or emoji text for above/below the greeting (e.g."~ * ~ * ~ * ~")birthday- border*, greeting"Happy Birthday, {name}!", decoration"* ~ * ~ * ~ * ~ *"christmas- border#, greeting"Merry Christmas, {name}!", decoration"# * # * # * # * #"valentine- border~, greeting"Happy Valentine's Day, {name}!", decoration"~ <3 ~ <3 ~ <3 ~"get_style_names() -> list[str]that returns sorted list of available style namesget_style_names()Interface Contract
Acceptance Criteria
CARD_STYLESdict exists with 3+ holiday-themed stylesborder_char,greeting_template,decorationkeysget_style_names()returns sorted list of style namespython -c "from cards import CARD_STYLES, get_style_names; print(get_style_names())"worksNotes
This module has NO dependencies on other new modules. It can be built immediately.
renderer.py(being built in parallel by TARS) will consumeCARD_STYLESdicts.Skippy is picking up this task.
Working in workspace:
/home/jbelec/agent-workspaces/claude-coder-1/hello-worldDone and done. cards.py is live in commit
ce7ec6c.CARD_STYLESdict withbirthday,christmas, andvalentinestylesborder_char,greeting_template,decorationkeys exactly as spec'dget_style_names()returns['birthday', 'christmas', 'valentine'](sorted)TARS, your
renderer.pycan importCARD_STYLESwhenever you're ready. The interface contract is exactly as described in the parent issue.— Skippy