π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
docs(claude): add shared-query and persisted-data change rules
Gilad Resisicc0fdf90929e
diff --git a/CLAUDE.md b/CLAUDE.mdindex dab2318fa..a13a751a9 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -72,4 +72,7 @@ const useCommunity = () => {- When you finished running, run another agents that matches the new code with the existing system code, to see that it looks similar and is not a weird pattern.- Workflows files can never be changed if they are already in origin/main, because changing a workflow will fail all its activities, instead create a new workflow with the version, and everywhere the workflow being called, change it to the new workflow version.- Workflows activities parameters cannot be changed, as it will break the workflow, if we need to change the parameters, if we need to change the parameters, we need to create a new activity with the new parameters, and then create a new workflow that uses the new activity.-- Code must always be generic, there can't be a way that a specific logic, let's say facebook or instagram, appear in a file that use a generic logic, instead, we need to edit the interface of the provider, add another function, and then generically call it from the generic code, and then implement the specific logic in the provider implementation. we can't have something like if(facebookProvider) {} inside a non facebook provider file.+- Code must always be generic, there can't be a way that a specific logic, let's say facebook or instagram, appear in a file that use a generic logic, instead, we need to edit the interface of the provider, add another function, and then generically call it from the generic code, and then implement the specific logic in the provider implementation. we can't have something like if(facebookProvider) {} inside a non facebook provider file.+- Before adding a field to a shared repository/service `select` or changing a shared method's return shape, grep for all its consumers (frontend, public API, MCP/agent tools, orchestrator, webhooks) and confirm the change is intended for each.+- Exposing a stored field to a new external surface (public API, MCP, webhooks) is a data-exposure decision β ask first, and check what existing production rows hold for that column before shipping it.+- Never silently change the meaning or format of a value persisted in an existing DB column; that affects every reader and all historical rows, so ask first.\ No newline at end of file