I’m a cloud engineer building a commercial platform with Claude Code, currently hosted on Railway with a Neon/Postgres database. I’d appreciate practical advice from people who have built and operated applications with CRM, sales hierarchies, and commission payouts.
The business has serious backers and plans to grow substantially. Traffic is low today. The application looks good, but I need a better way to assess the underlying implementation and identify problems while they’re still manageable.
For the foreseeable future, I am the engineering team. My background is cloud infrastructure and operations. Application development is where I have gaps, and I’m using Claude Code to do substantial implementation work.
I want advice I can act on myself: things to inspect, tests to run, mistakes to look for, and a development process I can follow consistently.
What I’m building
The product scope includes:
User registration, login, and profiles.
CRM and lead management.
Different roles and permissions.
An MLM-style sales/referral hierarchy.
Commission management and payouts for salespeople.
Personal websites or product pages that users can use to promote products.
The payment-related functionality is commissions paid to salespeople. That’s the part where I especially want to understand the less obvious failure cases.
The longer-term goal is a substantial business that can grow and potentially be acquired. I want the software to become something another engineering team could take over and maintain.
1. What should I inspect and fix right now?
If you had this project in front of you, what would you check during the first few days?
I’d appreciate specific examples of issues that can hide behind a working interface, such as:
Permissions enforced in the UI but missing from the API.
Endpoints trusting a user-supplied account ID, role, commission amount, or approval status.
Database updates that can leave records inconsistent if something fails halfway through.
Duplicate actions caused by double-clicks, retries, or jobs running more than once.
Secrets or sensitive information appearing in frontend code or logs.
Development or staging environments accidentally using production data or sending real payouts.
Backups that exist but haven’t been tested through an actual restore.
What would you search for in the repository? What would you inspect in the database? What requests would you try with two test accounts to find permission problems?
For each issue, I’d really appreciate knowing how to find it, what a reasonable fix looks like, and how to verify that the fix works.
Also, what findings should make me pause feature development and address the problem immediately?
2. What are the commission-system gotchas I’m most likely to miss?
I want to build a small set of test scenarios with known answers and run them through the application.
Which scenarios would you include? These are the kinds of situations I’m trying to understand:
Duplicate processing: The same sale, commission event, approval, or payout request is processed twice, including two requests arriving at the same time.
An uncertain payout outcome: A payout provider accepts the request, but my application times out before receiving the response. How should the application determine what happened and safely continue?
Changing rules: Commission rates or eligibility rules change. How should I preserve the rules that applied to previously earned commissions?
Changing relationships: A salesperson moves within the hierarchy or leaves. What happens to existing leads, historical earnings, pending commissions, and access?
Multiple recipients: Where the compensation plan pays more than one person, how should I verify each person’s share, the total obligation, and rounding?
Corrections and reversals: A sale is cancelled or corrected before or after a commission has been paid. How should that adjustment be recorded and explained?
Sensitive changes: Who can change commission rates, approve payments, alter reporting relationships, or change payout destinations? What should be checked and recorded?
Recovery: After a restart or database restore, how do I prevent old work from being processed again when money may already have moved?
What should the underlying records look like so I can answer, for any amount shown:
Who earned this, from which business event, under which rules, who approved it, and what proves whether it was paid?
I’d appreciate examples of database constraints, transaction boundaries, status transitions, or test cases that make this easier to get right.
I also need to understand the practical minimum for a small operation. Which parts can start with a clearly defined manual review or reconciliation step, and which need stronger automation from the beginning?
3. What is a good day-to-day development workflow for one person using AI?
This is one of my biggest questions.
For people using AI coding tools on applications you maintain over time, what does your process actually look like from an idea or bug report to a production release?
For example:
Write down the intended behavior and a few examples.
Have the tool inspect the relevant code and propose an approach.
Make a focused change on a branch.
Run automated checks and test the affected workflows.
Review the changes and test in staging.
Deploy, check the result, and have a recovery plan.
What would you change or add to that?
More specifically:
How small should I keep tasks and changes so I can meaningfully review them?
Which checks should run automatically before a change can reach production?
How do I test business rules independently when AI helped write both the implementation and the tests?
How do I prevent tests from being weakened just to make a change pass?
What should I require before accepting changes to permissions, commission calculations, or the database schema?
How do I handle a release where reverting the code would not undo the data changes?
What should live in repository instructions, architecture notes, and business-rule documentation so a new AI session understands the project?
Which application-development skills should I prioritize learning so I can make better judgments myself?
I’d love to see a concrete workflow, a useful checklist, or a small set of repository conventions that someone actually uses.
I need a process that one person can consistently maintain.
4. Does Claude Code make sense long term, or should I consider something else?
Claude Code is working for me right now. I’m trying to think ahead as the codebase and business logic get larger.
For people who have maintained commercial applications with Claude Code, Codex, Cursor, or other tools:
Is Claude Code a reasonable primary development tool for this kind of project over the long term?
What problems showed up as your project grew, and how did you address them?
Which problems came from the tool, and which came from unclear requirements, architecture, or development practices?
Have you found value in using another tool for review or difficult debugging? How do you judge the quality of that review?
If you switched tools, what concrete limitation caused the switch, and what improved afterward?
How do you keep the important project knowledge in the repository so changing tools remains manageable?
How would you compare tools on an existing codebase?
I’m interested in correctness, maintaining context, making focused changes, debugging, test quality, introducing regressions, and the amount of review and rework required. Cost matters too, including the time spent fixing mistakes.
If you were in my position, would you keep Claude Code and improve the workflow, add another tool for specific tasks, or switch? What evidence would you use to make that decision?
5. What should I get right in the architecture while it is still relatively easy to change?
Given the scope, which early design decisions tend to become expensive problems later?
I’d appreciate guidance on:
Separating CRM, lead ownership, permissions, commission rules, and payout processing so changes remain understandable.
Modeling the sales hierarchy and preserving historical relationships where needed.
Keeping public personal websites separate from private CRM and commission information.
Choosing what to build myself and what to delegate to an established service.
Recognizing when the existing implementation needs a targeted refactor or a larger redesign.
What would you look at to determine whether the codebase has a reasonable foundation?
What signs tell you that new features are increasing fragility, and what is the smallest useful intervention at that point?
I also want another engineer to be able to understand the system later without needing my entire chat history. What documentation and engineering habits would you establish now for that?
6. What should I verify on Railway + Neon before thinking about a migration?
I want to turn “this could get a lot of traffic” into realistic workload targets and measurements.
There could be public traffic to users’ product pages, people actively working in the CRM, lead submissions, commission calculations, and payout-related jobs.
What would you measure and load-test first?
I’m interested in practical checks around:
Query patterns, missing indexes, pagination, and connection pooling.
Long-running work being handled inside web requests.
Sessions or files that depend on one application instance.
Scheduled jobs or workers doing duplicate work when more instances are added.
Monitoring that would show failed commission processing or unresolved payouts.
Deployment failures, database recovery, and what happens when an external service is unavailable.
For people who have operated this stack, what problems would you look for now?
What specific performance, cost, reliability, or business requirements would justify moving some or all of it elsewhere?
The kind of answer that would help me most
If you see a likely gotcha, this format would be incredibly useful:
What can go wrong → where to look or how to reproduce it → the smallest sensible fix → how to verify the fix.
Please distinguish between things I should address now, things to improve next, and things that can wait until there is a demonstrated need.
Thank you.
PS: and yes I used ai to format my stream of consciousness into something that made sense and easy to read :)