Skip to content

Instantly share code, notes, and snippets.

@ThomasRohde
ThomasRohde / memory_bank.md
Created May 1, 2025 05:10
Coding agent memory bank custom instructions

Memory Bank

I am [insert name of coding agent], an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD PB[projectbrief.md] --> PC[productContext.md]

@ThomasRohde
ThomasRohde / tech_radar.json
Last active April 30, 2025 03:47
Tech Radar 2025
[
{
"description": "Integrate security into development from the start – automating security checks in CI/CD pipelines and “shifting left” activities like code scanning and threat modeling. This practice ensures compliance in a regulated bank environment and catches issues early. Embracing DevSecOps helps teams deliver secure software faster by combining development, operations, and security workflows. We recommend institutionalizing this approach (with training and tooling) so that every build and release includes security and compliance checks by default.",
"isNew": "FALSE",
"name": "DevSecOps & Shift-Left Security",
"quadrant": "Techniques",
"ring": "Adopt"
},
{
"description": "Design systems around business domains with loosely coupled microservices. DDD helps a large bank break down complex domains (payments, loans, trading, etc.) into well-defined bounded contexts, making systems easier to understand and evolve. Coupled with microservices, it allows independent deployment a
<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.opengroup.org/xsd/archimate/3.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengroup.org/xsd/archimate/3.0/ http://www.opengroup.org/xsd/archimate/3.1/archimate3_Diagram.xsd" identifier="id-496a56122dee4048980577fcc7841767">
<name xml:lang="en">test</name>
<elements>
<element identifier="id-ca47c957ab224e2b88e6c16aceda216d" xsi:type="DataObject">
<name xml:lang="en">Insurance Policy Data</name>
</element>
<element identifier="id-f6ee1a5f1aca4728867c6deae008ab2a" xsi:type="DataObject">
<name xml:lang="en">Customer File Data</name>
</element>
@ThomasRohde
ThomasRohde / space.py
Last active March 10, 2025 10:09
A Textual-based interactive terminal application t...
# /// script
# description = 'A Textual-based interactive application to visualize file sizes in a user-selected directory'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2023-11-10'
# requires-python = '>=3.9'
# dependencies = [
# 'textual>=0.40.0'
# ]
@ThomasRohde
ThomasRohde / ascii.py
Last active March 10, 2025 10:09
This script converts input text into ASCII art usi...
# /// script
# description = 'A Python program that converts input text to ASCII art'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2023-11-10'
# requires-python = '>=3.9'
# dependencies = [
# 'pyfiglet>=0.8.post1',
# ]
@ThomasRohde
ThomasRohde / breakout.py
Last active March 7, 2025 03:28
A colorful implementation of the classic Breakout ...
# /// script
# description = 'A colorful Pygame implementation of the classic Breakout game with paddle, ball, and bricks'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2023-11-01'
# requires-python = '>=3.9'
# dependencies = [
# 'pygame>=2.0.0',
# ]
@ThomasRohde
ThomasRohde / snake.py
Last active March 10, 2025 10:09
This script implements a snazzy version of the cla...
# /// script
# description = 'A snazzy game of Snake with two AI-controlled snakes competing'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2024-07-14'
# requires-python = '>=3.9'
# dependencies = [
# 'pygame>=2.1.0',
# ]
@ThomasRohde
ThomasRohde / ticker.py
Last active March 7, 2025 03:28
A FastAPI application that allows users to input a...
# /// script
# description = 'A FastAPI application that serves a snazzy and interactive stock plot for a given ticker symbol.'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2023-11-27'
# requires-python = '>=3.9'
# dependencies = [
# 'fastapi>=0.68.0',
# 'uvicorn',
@ThomasRohde
ThomasRohde / snazzy.py
Last active March 10, 2025 10:09
Test program to exercise the capabilities of the '...
# /// script
# description = "Test program to exercise the capabilities of the 'rich' package"
# authors = ["Script-Magic AI Generator"]
# date = "2023-10-06"
# requires-python = ">=3.9"
# dependencies = [
# "rich>=10.0.0",
# ]
# tags = ["rich", "testing", "terminal"]
# ///
@ThomasRohde
ThomasRohde / process.py
Last active March 10, 2025 10:09
Load a JSON file from the command line and estimat...
# /// script
# description = "Load a JSON file from the command line and estimate its schema."
# authors = ["Script-Magic AI Generator"]
# date = "2023-10-07"
# requires-python = ">=3.9"
# dependencies = [
# "jsonschema"
# ]
# tags = ["json", "schema", "data analysis"]
# ///