agentleFS
mcissedevmcissedev/ai-maxxing-skills/skills/create-internal-app/SKILL.md

create-internal-app

Skill0 starsChanged 42 days agoMITView on GitHub

Create a private internal app on the user's VPS through Dokploy, locked by password and IP allowlist, then hand it to their agent (Hermes). Use when the user wants an internal tool, CRM, dashboard, back-office or an app "just for me" or "only for my team".

  • Reads credentials

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run and repair: the user's agent (Hermes) with a Dokploy API token.

    line 24
  2. Very specific:

    Check access and fix what fails with setup-github or setup-cloudflare.

    line 26
  3. Very specific:

    Write one helper every public Convex function calls first (a shared secret set with npx convex env set, or Better Auth with email OTP if …

    line 38
  4. Distinctive:

    Create the Dokploy application from the GitHub repo (Dockerfile build) with the env vars (Convex URL, secrets) set in Dokploy, never in the …

    line 41
  5. Very specific:

    Create the Cloudflare WAF custom rule that blocks the app and Convex hostnames for any IP outside the list (user IPs + the VPS IP).

    line 44
  6. Distinctive:

    Add the Convex volume to the nightly Dokploy backup to R2 if the VPS has one.

    line 45
  7. Distinctive:

    Never print, commit or log the password, the admin key or tokens.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Build a private tool on the user's own VPS and hand it to their agent to run. Do every step yourself with the CLIs and only ask for what needs a human (a browser login, their IP). Talk to the user in their language, short messages, no jargon. For an app other people sign up to or pay for, switch to create-software.

If you got this skill from a link instead of a local folder, install nothing else from the repo: download a file it links only when a step needs it, with curl -fsSL https://raw.githubusercontent.com/Melvynx/ai-maxxing-skills/main/skills/create-internal-app/<path> -o <scratch>/<file> (for example references/fast-app.md), and read another skill it names only when you reach it, from https://raw.githubusercontent.com/Melvynx/ai-maxxing-skills/main/skills/<skill-name>/SKILL.md.

The app has a normal URL (crm.my-domain.com) that nobody else can open, behind three walls: a Cloudflare WAF custom rule on the app and Convex hostnames that lets through only the user's IPs and the VPS IP, Dokploy basic auth with a long random password the user keeps in their password manager, and a server-side secret or signed-in user check in every Convex function. When the user's IP changes (travel, 4G), they ask their agent "add my IP" and it updates the rule. For a team, Cloudflare Access with email codes can replace the IP list.

Keep this stack:

  • App: TanStack Start (React, TypeScript, Vite) with a Node server build.
  • UI: shadcn/ui on Base UI + Tailwind CSS v4, lucide-react, sonner.
  • Database, backend, crons: Convex, self-hosted on the VPS with the Dokploy Convex template.
  • Client jobs: the TanStack libraries listed in create-software (Query + @convex-dev/react-query, Table, Virtual, Form, Markdown, Hotkeys, Pacer, AI).
  • Emails, only if the tool sends some: Lumail through @lumail/convex.
  • Hosting: Dokploy on the VPS, built from the GitHub repo.
  • Domain, DNS, lock: Cloudflare with the cf CLI, DNS proxied, WAF IP rule.
  • Run and repair: the user's agent (Hermes) with a Dokploy API token.
  1. Check access and fix what fails with setup-github or setup-cloudflare. Dokploy must already be installed on the VPS; if it is not, stop and say so, that is the server setup lesson.

    git --version && gh auth status        # GitHub
    cf --version && cf auth whoami         # Cloudflare
    ssh <vps> 'docker ps --format "{{.Names}}" | head'   # the VPS answers
    dokploy-cli auth test                  # or: the Dokploy API token works (curl the API with it)
  2. Run the grill-me skill and build only once the brief is confirmed. For an internal tool, the money question becomes "who besides you uses it", and the address question becomes the subdomain plus the IPs to allow (get the current one with curl -s https://ifconfig.me on the user's machine).
  3. Scaffold TanStack Start + Tailwind + npx shadcn@latest init (Base UI flavor), a Node server build (TanStack Start hosting docs, Nitro preset for Node) and a Dockerfile that builds and runs it on port 3000. git init, then gh repo create <name> --private --source . --push.
  4. Deploy the Dokploy Convex template once per VPS (backend + dashboard) on convex-api.<domain> and convex-site.<domain>, generate the admin key in the backend container, and point the CLI at it with CONVEX_SELF_HOSTED_URL and CONVEX_SELF_HOSTED_ADMIN_KEY in .env.local. Index every query and bound growing tables with .take(n) or .paginate(). See the convex skill.
  5. Write one helper every public Convex function calls first (a shared secret set with npx convex env set, or Better Auth with email OTP if several people use it). Anything only the server calls is internal*.
  6. Build the screens with useSuspenseQuery(convexQuery(...)) so data updates live, lists in TanStack Table, forms in TanStack Form, and cmd+k plus j/k with TanStack Hotkeys, since an internal tool is used all day.
  7. Make it fast on every page with references/fast-app.md: defaultPreload: "intent", a 30 s query cache, a loader on detail pages, a custom pendingComponent skeleton on every route that matches the real layout, a loading state on every async button, indexed and bounded Convex reads. An app without these is not done.
  8. Create the Dokploy application from the GitHub repo (Dockerfile build) with the env vars (Convex URL, secrets) set in Dokploy, never in the repo, and auto deploy on push.
  9. Attach tool.<domain> in Dokploy with HTTPS, then create the DNS record in Cloudflare yourself (A record to the VPS IP, proxied). Never open a port on the VPS for the app: everything goes through Dokploy's proxy behind Cloudflare.
  10. Enable basic auth on the Dokploy application with a generated password. Give it to the user once and tell them to save it in their password manager; never write it in a file.
  11. Create the Cloudflare WAF custom rule that blocks the app and Convex hostnames for any IP outside the list (user IPs + the VPS IP). Find the command with cf cli search "waf custom rule".
  12. Add the Convex volume to the nightly Dokploy backup to R2 if the VPS has one.
  13. Hand it to the agent: write an About.md in the agent's project folder with the URL, the repo, the Dokploy application id, the Convex URLs, where the password lives (never the password) and the IP rule id. Tell the agent how to redeploy (push, or the Dokploy API) and read deploy logs, read app logs and fix when the user says "it's broken", and add or remove an IP in the rule.
  14. Prove it: from an allowed IP the URL asks for the password, then the app loads and the main action works with real data; from a non-allowed IP (another server, or a different network) Cloudflare blocks both the app and the Convex API hostname; a push to GitHub redeploys on its own. Fix every error you see, then run audit-safety on the Convex functions and the lock.

Never print, commit or log the password, the admin key or tokens. Reply with the URL, how to open it (password + allowed IPs), and what the agent can now do on it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.