App Forge Labs Shop

Auth Kit is a complete, hardened sign-in system that your coding agent ports into your own codebase. It is the sign-in I run my own products on, packaged as an agent skill.

What your agent builds

  • Continue with Google. OAuth code flow with PKCE and state cookies, the code exchanged server to server, ID token claims validated. No Google script in the browser.
  • Magic links. Passwordless email sign-in. The request always answers the same way, so it cannot be used to discover accounts. Tokens are hashed and single use.
  • Accounts and identities. One account per verified email and many identities per account. Concurrent first sign-ins converge on one account.
  • Sessions. Opaque cookies, SHA-256 hashed in the database, 30 days sliding, rotated on every sign-in.
  • The platform pieces. Origin guard and security headers, Postgres rate limits, Resend email with a local outbox in development, and an env schema that fails closed in production.

What's in the box

  • SKILL.md and PORTING.md: the invariants and the step-by-step port your agent follows.
  • reference/: the working implementation (Hono API, Drizzle/PostgreSQL, Vue SPA).
  • Real-database integration tests and Playwright flows.
  • A mutation check that breaks each security guard in turn and expects the tests to fail, so you know the port kept them.

Install

curl -fsSL https://shop.appforgelabs.com/install.sh | bash
afl login        # paste a licence key from your library
afl install port-auth

Then you can ask your agent to "add sign-in to this app with the port-auth skill". The reference code uses Hono, Vue and Postgres, and the skill tells your agent how to adapt it to other stacks.

Updates

afl update brings in new releases and merges them with any changes you made to the skill. If a change conflicts, the CLI marks it and your agent resolves it.

Questions

Does it include email-and-password login?

No, by design. It is Google sign-in plus passwordless magic links, so there are no passwords to store, reset or leak.

Do I need a Resend account?

In production, magic links are sent through Resend. In development they are written to a local outbox folder, so you can test without an account. Using another email provider means replacing the part of the code that sends the email.

What do I actually get?

You get a folder that your coding agent reads. It holds SKILL.md (what must survive the port), PORTING.md (the steps) and a working reference implementation, with its tests and a mutation check: a script that breaks each safeguard in turn and confirms that the tests catch it. It is source code and instructions, not a hosted service or a package you depend on.

Which coding agents does it work with?

It is written in the skill format Claude Code loads from ~/.claude/skills, and that is what it is built and tested with. Other agents, such as Codex or Cursor, can use it too: install it with afl install port-auth --dir <path> and point the agent at SKILL.md.

Will it work with my stack?

The reference implementation uses Hono, Vue, Postgres. SKILL.md separates what must survive (the invariants, each pinned by a test) from what is specific to the reference, and tells your agent how to adapt the rest. The closer your stack, the less your agent has to translate.

How do updates work?

Run afl update. It merges each new release into your installed copy: files you did not touch are replaced, your edits are kept, and where you and the release changed the same lines it marks the conflict for you or your agent to resolve. The changelog marks security fixes, so you know when to carry a release into code you already ported.

Is this a one-time payment?

Yes. You pay once and get every future update of this skill. The All-Access Pass ($99/yr) is the yearly option that covers every skill.

Why does the price go up?

This skill has launch pricing. It costs $39 for the first 25 buyers, $49 up to 100 buyers, $59 after that. The price never goes down, and the price shown when you open checkout is the price you pay.

Can I use it in client work?

Yes. The licence (LICENSE.md, in the download) lets you use and modify the code in any number of your own and your clients’ projects, and code that ends up in a project ships with it. What you cannot do is resell or redistribute the skill itself.

What do I need to install it?

macOS or Linux (on Windows, use WSL) with bash, curl and tar. git is used to merge updates with your edits. You can also download the files from your library without the CLI.

Can I get a refund?

Sales are final, because the files are delivered the moment you pay. If something does not work, for example the install fails, email hello@appforgelabs.com and we will fix it.

Is it in the All-Access Pass?

Yes. Members get this skill and every other one, with all updates, while their pass is active ($99/yr).

Feedback