Project Settings Cascade logo

Project Settings Cascade

CommunityPopular
samugit83
project-settings-cascade

Changing or adding a project setting / default value in RedAmon. A single setting is duplicated across Prisma, two separate Python settings modules, the orchestrator defaults endpoint, and the frontend fallback; miss a layer and the UI shows one value while the backend uses another, and existing projects keep the old value forever. Trigger: editing a @default in webapp/prisma/schema.prisma; editing DEFAULT_AGENT_SETTINGS or fetch_agent_settings in agentic/project_settings.py, or DEFAULT_SETTINGS or fetch_project_settings in recon/project_settings.py; editing the /defaults endpoint or RUNTIME_ONLY_KEYS in recon_orchestrator/api.py; changing a default toggle/number/string in a ProjectForm section.

Overview

Publishersamugit83
Repositoryredamon
Skill nameproject-settings-cascade
Stars
2.5K
Forks
504
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by samugit83 on GitHub. Read the source before you install it.

Installation

Install the Project Settings Cascade AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/samugit83/redamon.git /tmp/redamon
mkdir -p .claude/skills
cp -r /tmp/redamon/skills/project-settings-cascade .claude/skills/project-settings-cascade
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Project Settings Cascade in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Project Settings Cascade on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Project Settings Cascade is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

When to Use

  • Adding a new project setting, or changing the default value of an existing one.

This skill is the settings sub-pattern the tool/skill skills depend on; they link here rather than restating it. For the surrounding tool wiring, see agentic-tool-integration, recon-tool-integration, or builtin-agent-skill.


Critical Rules

  • NEVER change a default in one layer only. A setting is synchronized across every layer in the table below. Update them in one commit or the UI and backend drift silently.
  • NEVER assume existing projects pick up a new/changed default. A Prisma @default applies to new projects only. Existing rows keep their stored value; changing behaviour for them needs an explicit SQL UPDATE (ask before running it - it mutates every project).
  • NEVER share settings code between agent and recon. agentic/project_settings.py and recon/project_settings.py are separate modules with their own default dicts (DEFAULT_AGENT_SETTINGS vs DEFAULT_SETTINGS). A setting used by both is declared in both.
  • NEVER use prisma migrate. This project is push-based: docker compose exec webapp npx prisma db push.
  • ALWAYS keep the name triad aligned: DB column snake_case (via @map()), Prisma field + frontend + API camelCase, Python key SCREAMING_SNAKE_CASE. A mismatch means fetch_*_settings reads None and silently falls back to the default.
  • ALWAYS give the frontend onChange a fallback equal to the Python/Prisma default, so a project saved before the field existed does not write undefined.
  • A new column FAILS THE BUILD until it has a registry entry. Every parameter is described once, in recon_settings/registry.yaml, with its unit, phase, traffic class, engagement-cap flag, MCP disposition, meaning, and either a bound or a named validator. Add the column, run python3 tooling/scripts/extract_recon_registry.py to draft the entry, EDIT IT, then python3 recon_settings/build.py. The draft is a starting point: no extraction can tell whether a meaning is true or a bound is right.
  • NEVER hand-edit registry.json. It is a build artifact, written to two places (recon_settings/ for Python, webapp/src/lib/reconSettings/ for TypeScript) by one build, and build.py --check fails the gate when either is stale. Edit the YAML.
  • NEVER add a rate field without roe_capped: true. An rps field with traffic: active and no cap fails the build, because that gap is how three rate limits shipped reachable over MCP and outside the engagement ceiling.
  • mcp: settable is the normal answer, and a REAL bound is the control. The form input and the MCP validator are both generated from the registry, so a bound of 0..10000000 is a fake control on both doors at once. bounds.test.ts fails any count or threads maximum above 100000; the only way past it is a field whose SHIPPED default is already higher, named individually in ABOVE_THE_FLAT_CEILING with its own maximum, and the test refuses an entry whose default would fit under the ceiling anyway.
  • A field with a closed vocabulary gets values:, not validator: free_text. That is what makes the form render a <select> and the write refuse an unknown value instead of accepting it and having the runtime replace it silently. bounds.test.ts also fails a bespoke control that renders a closed-value field as anything but a <select>, because a text box over a closed set means the form accepts what the save rejects.
  • mcp: never needs a deny_reason the schema defines - identity, internal, escalation, secret, upload-managed, engagement-record, not-tuning or derived. There is no ALLOW/DENY table and no unbounded reason; denying a tuning field "to be safe" makes the API the weaker of two doors and fails parity.test.ts.
  • A settable field needs a form input, and an input needs a classification. form_section is joined from the tool's entry unless the field names its own, and an explicit null means "no input anywhere" - which the parity test reads to tell a deliberate omission from a forgotten one.
  • State what 0 means on any field that defaults to it. Several rates treat 0 as UNLIMITED, which makes it the FASTEST value rather than the safest. A numeric defaulting to 0 without zero_means fails the build, and the meaning has to repeat it in words.

The layers (recon example: katanaTimeout)

LayerFileForm
DB / schemawebapp/prisma/schema.prismakatanaTimeout Int @default(3600) @map("katana_timeout")
Python defaultrecon/project_settings.py:21 DEFAULT_SETTINGS (or agentic/project_settings.py DEFAULT_AGENT_SETTINGS)'KATANA_TIMEOUT': 3600
Fetch mappingrecon/project_settings.py:863 fetch_project_settings (or fetch_agent_settings in the agent module)settings['KATANA_TIMEOUT'] = project.get('katanaTimeout', DEFAULT_SETTINGS['KATANA_TIMEOUT'])
Registryrecon_settings/registry.yamlkatanaTimeout: { tool: katana, runtime_key: KATANA_TIMEOUT, unit: seconds, phase: resource_enum, traffic: active, roe_capped: false, mcp: settable, bounds: {...}, meaning: ... }
Served defaultsrecon_orchestrator/api.py /defaultsnothing to do: the payload and its exclusions are REGISTRY QUERIES now. A key with no column is excluded by source: internal, and the column name comes from the registry rather than a snake-to-camel guess (which could not recover an intercap, so nine settings never reached the form).
Frontendthe tool's ProjectForm section componentcontrol with an onChange fallback equal to the default. Its min/max must not be WIDER than the registry bounds, or the form accepts a value the save refuses.

Agent-only settings use DEFAULT_AGENT_SETTINGS + fetch_agent_settings; recon-only use DEFAULT_SETTINGS + fetch_project_settings. There is no shared module.

The registry reaches three services on three schedules

This is the part that bites, because two of the three pick a change up on their own and the third does not:

ServiceHow it gets the registryAfter a registry change
reconvolume-mounted, spawned per scannothing
recon-orchestratorread-only mountdocker compose restart recon-orchestrator
agentCOPY-baked (agentic/Dockerfile)docker compose build agent && docker compose up -d agent

Rebuilding the agent is not optional after a registry change. build.py also writes recon_settings/roe_parse_prompt.py, which embeds the SHA-256 of registry.json, and /roe/parse compares that digest against the registry it actually loaded. A stale agent image therefore returns 503 on every RoE document upload, naming both digests, rather than parsing a document against a field list that no longer matches what will validate the answer.

It fails closed on purpose: a stale prompt does not produce an error, it produces a confidently wrong configuration.

Commands

bash
python3 tooling/scripts/extract_recon_registry.py             # draft the registry entry for a new column
python3 recon_settings/build.py                               # rebuild the THREE artifacts (--check in the gate)
cd webapp && npm run docs:settings                            # regenerate the wiki settings registry
docker compose exec webapp npx prisma db push                 # apply schema; NEVER prisma migrate
docker compose build agent && docker compose up -d agent      # REQUIRED after ANY registry change (see below)
docker compose restart recon-orchestrator                     # picks the registry up from its mount
# existing projects (ask first - mutates every row):
docker compose exec postgres psql -U redamon -d redamon -c "UPDATE projects SET katana_timeout = 3600 WHERE katana_timeout IS NULL;"

Resources

Frequently asked questions

What does the Project Settings Cascade AI skill do?

Changing or adding a project setting / default value in RedAmon. A single setting is duplicated across Prisma, two separate Python settings modules, the orchestrator defaults endpoint, and the frontend fallback; miss a layer and the UI shows one value while the backend uses another, and existing projects keep the old value forever. Trigger: editing a @default in webapp/prisma/schema.prisma; editing DEFAULT_AGENT_SETTINGS or fetch_agent_settings in agentic/project_settings.py, or DEFAULT_SETTINGS or fetch_project_settings in recon/project_settings.py; editing the /defaults endpoint or RUNTIM...

Why use Project Settings Cascade on TypingMind?

Because you install it once and use it with any model. Project Settings Cascade is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Project Settings Cascade in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/samugit83/redamon/tree/master/skills/project-settings-cascade. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Project Settings Cascade?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Project Settings Cascade?

As many as you like. As long as a model supports skills, you can use Project Settings Cascade with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Project Settings Cascade AI skill free?

Yes. It is published on GitHub by samugit83 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇