60 Commits
Author SHA1 Message Date
Derek Ross ac7a6d9435 Replace relay.damus.io with nos.lol in default relays
relay.damus.io is shutting down at the end of July 2026. It ships in
APP_RELAYS, so every app bootstrapped from MKStack would include a dead
relay out of the box. Swap in nos.lol, keeping read: false / write: true
so the outbox strategy is unchanged.

Also refresh the AGENTS.md copy of the default relay list, which had
drifted from src/lib/appRelays.ts and still named damus.

Closes #22
2026-07-28 10:09:52 -04:00
Alex Gleason 772479e232 Update AI context for Tailwind v4 and React 19
- AGENTS.md: describe ui components as React 19 ref-as-prop function
  components using data-slot and the unified radix-ui package
- theming skill: register fonts and color tokens via @theme in
  src/index.css (no tailwind.config.ts); fix color values to use the
  hsl() wrapper that matches the real index.css
- ai-chat skill: import VisuallyHidden from the unified radix-ui package
- nwc skill: convert ZapDialog/WalletModal forwardRef to ref-as-prop
- edit-profile skill: drop React.FC in favor of plain function typing
2026-06-05 09:43:15 -05:00
Alex Gleason 2b7d6655af Remove remaining genUserName references from docs and skill templates 2026-05-30 18:44:53 +02:00
Alex Gleason 551928849a AGENTS tweak 2026-05-04 09:15:29 -05:00
Alex Gleason 4e8aedde9c Update AGENTS.md to reflect TailwindCSS 4.x upgrade 2026-04-26 23:14:21 -05:00
Alex Gleason 7de955ff87 Lead with XSS threat model in Nostr security guidance
The single most important thing to understand about a web Nostr client
is that nsec keys live in plaintext in localStorage, so any XSS =
permanent, unrecoverable key theft. The previous framing led with
author filtering (important but lower-stakes) and only mentioned XSS
implicitly via URL sanitization.

Restructures both the AGENTS.md section and the nostr-security skill
so the key-storage reality and XSS mitigations come first, CSP is
explained as defense-in-depth (with a walkthrough of the existing
index.html policy), and author filtering becomes section 3 — still
important, but secondary to script-injection prevention.

Also adds a 'no dangerouslySetInnerHTML' rule and a CSP hygiene rule
to the top-level checklist so those blockers surface before any
sanitization detail.
2026-04-26 21:55:25 -05:00
Alex Gleason 03ffbdaa44 Add nostr-security skill and trim AGENTS.md section
The skill consolidates three attack surfaces for Nostr event data:
author filtering on trust-sensitive queries, URL sanitization before
rendering event-sourced links/images, and CSS injection prevention
when interpolating event data into styles. The latter two were
previously undocumented in mkstack — imported and adapted from the
Ditto project's guidance, generalized to reference sanitizeUrl and
sanitizeCssString helpers as patterns to implement (mkstack doesn't
ship them yet) rather than existing imports.

AGENTS.md's Nostr Security Model now fits in a bulleted rule list
plus a single spoof-vs-authors example, with a pointer to the skill
for the full NIP-72 moderation walkthrough and sanitization details.
2026-04-26 21:52:42 -05:00
Alex Gleason 4217e553df Nest Loading and Empty States under Design Standards in AGENTS.md
Moves the section below the design rules list and demotes it from ## to
### so it reads as a subsection rather than a standalone top-level topic.
2026-04-26 21:50:53 -05:00
Alex Gleason a1619c1dab Extract testing guidance into a dedicated skill
Moves the 'don't write tests unless asked' policy and the Vitest +
TestApp setup example out of AGENTS.md into .agents/skills/testing/.
AGENTS.md keeps a short pointer so the 'always run the test script'
rule stays top-level while the test-authoring details load on demand.

Also adds a hook-testing example (renderHook + TestApp wrapper) and
notes for running vitest directly during iteration.
2026-04-26 21:50:26 -05:00
Alex Gleason b5043195d9 Remove skill list from AGENTS.md
The skill tool already provides a list of available skills with
descriptions, so enumerating them in AGENTS.md is redundant. Inline
"load the X skill" pointers next to related sections are kept \u2014
they serve as contextual cross-references, not a directory.
2026-04-26 20:44:31 -05:00
Alex Gleason 9617964e69 Split AGENTS.md into skills; compress design and query prose
Extract five topic areas into loadable skills: file-uploads,
nostr-encryption, theming, nip19-routing, nostr-relay-pools. Trim the
shadcn component enumeration, hook list, NostrMetadata type dump, and
Design Standards prose down to concrete rules. AGENTS.md shrinks from
1147 to 409 lines (~64%) while preserving the security model, core
hook usage, routing, loading/empty state, and git/test policies.
2026-04-26 20:43:22 -05:00
Alex Gleason fc34ae02d4 Unify login/signup into single AuthDialog with 'Join' button
LoginArea now shows a single 'Join' button instead of separate 'Log in'
and 'Sign Up' buttons. The button opens a unified AuthDialog ported from
espy with steps: welcome \u2192 generate \u2192 secure \u2192 profile \u2192 login \u2192 connect.

The welcome step lets the user choose 'Create new account' or 'I already
have an account', so no functionality is lost \u2014 extension login,
nostrconnect QR flow, bunker URI, and secret-key file upload are all
preserved. Styling uses the template's neutral shadcn look rather than
espy's gradients, and copy is generic (no product branding).

Deletes LoginDialog.tsx and SignupDialog.tsx; updates AGENTS.md to
describe the new single-button behavior.
2026-04-26 20:16:14 -05:00
Alex Gleason c067e87f2c Add note-content skill for rich text rendering of Nostr notes
Moves src/components/NoteContent.tsx and its test file into a new
note-content skill at .agents/skills/note-content/. The component
linkifies URLs, hashtags, and Nostr URIs (npub/nprofile/note/nevent)
inside plaintext event content, and was previously imported only by
the comments and DM stacks that have already been extracted/removed.

Also removes the 'Rendering Rich Text Content' section from
AGENTS.md since NoteContent is no longer part of the default
template surface. The new SKILL.md documents the expected /:nip19
and /t/:hashtag routes and the existing template hooks it relies on
(useAuthor, genUserName).
2026-04-26 18:04:43 -05:00
Alex Gleason 353551342b Add relay-management skill for NIP-65 relay list UI
Moves src/components/RelayListManager.tsx into a new
relay-management skill at .agents/skills/relay-management/, with a
SKILL.md covering installation, NIP-65 background, and how the
component hooks into the existing AppContext / NostrSync / kind
10002 publishing already present in the core template.

AGENTS.md's 'Relay Management' section keeps the NIP-65 sync
description but drops the RelayListManager usage example, pointing
at the new skill instead.
2026-04-26 18:00:11 -05:00
Alex Gleason bc97f82d3e Add edit-profile skill for Nostr profile editing form
Moves src/components/EditProfileForm.tsx into a new edit-profile
skill at .agents/skills/edit-profile/, with a SKILL.md covering
installation, the kind 0 fields it edits (name, about, picture,
banner, website, nip05, bot), and the existing template hooks it
plugs into (useCurrentUser, useNostrPublish, useUploadFile,
useToast).

Also removes the 'Nostr Edit Profile' section from AGENTS.md since
the component is no longer part of the default template surface.
2026-04-26 17:59:17 -05:00
Alex Gleason 0d5a415bac Extract Shakespeare AI hook into the ai-chat skill
Moves src/hooks/useShakespeare.ts into
.agents/skills/ai-chat/files/hooks/useShakespeare.ts and prepends
setup instructions to the existing SKILL.md.

Also removes the useShakespeare bullet from AGENTS.md since the hook
is no longer part of the default template surface.
2026-04-26 17:58:22 -05:00
Alex Gleason c6be6355a7 Remove direct messaging from the codebase
Deletes the entire DM stack \u2014 DMProvider, DMContext, the dm/ UI
components, useDMContext, useConversationMessages, the dm* library
modules, pages/Messages.tsx, and the nostr-direct-messages skill.
Also drops the idb dependency, which was only used by the DM
IndexedDB message store.

The implementation was complex and tightly coupled; removing it
clears the way for a future, cleaner approach if DM support is
needed again.
2026-04-26 17:57:05 -05:00
Alex Gleason 9e2599502d Extract NWC and Lightning zap code into an nwc skill
Moves NWC wallet connection (useNWC, NWCContext, WalletModal) along with
the WebLN wallet detection (useWallet) and NIP-57 zap stack (useZaps,
ZapButton, ZapDialog) out of src/ and into .agents/skills/nwc/ as an
opt-in skill. Removes NWCProvider from App.tsx and TestApp.tsx, drops
the NWC-only dependencies (@getalby/sdk, @webbtc/webln-types) from
package.json, and updates AGENTS.md to stop referencing the extracted
hooks and components.

The new SKILL.md explains how to reinstall the dependencies, copy the
files back into src/, and wire up NWCProvider when a project actually
needs Lightning wallet and zap functionality.
2026-04-26 17:48:46 -05:00
Alex Gleason 59c32c845c Add mandatory commit instruction to AGENTS.md
Require that every completed task end with a git commit, without waiting
for the user to ask. Committing is part of completing the task.
2026-04-26 00:58:25 -05:00
Alex Gleason dcfdbf9e47 Upgrade to React 19
- react, react-dom: ^18.3.1 -> ^19.2.4
- @types/react, @types/react-dom: ^18.3.1 -> ^19.x
- react-day-picker: ^8.10.1 -> ^9.14.0 (rewrite calendar.tsx for v9 API)
- vaul: ^0.9.3 -> ^1.1.2
- Fix RefObject<T> type in ZapDialog for React 19 type changes
2026-03-28 00:13:05 -05:00
Alex Gleason e67f5158b7 Standardize Nostr filter limit to 15 in AGENTS.md examples 2026-03-11 18:28:22 -05:00
Alex Gleason 5bea40c1a2 Remove relay.nostr.band (I thought we already did this) 2026-01-30 21:55:45 -06:00
Alex Gleason c1bd55108c Remove stray docs mentions from AGENTS.md 2026-01-24 21:21:09 -06:00
Alex Gleason 266e2c92d8 Replace docs with skills 2026-01-24 21:20:22 -06:00
Alex Gleason 8163f30011 You don't actually have to pass signal now 2026-01-24 00:02:15 -06:00
Derek Ross f87510bc3a Replace dead relay.nostr.band with relay.primal.net 2026-01-21 15:29:02 -05:00
Alex Gleason fc010f9b91 Add Nostr Security Model to AGENTS.md 2026-01-21 12:14:24 -06:00
Alex Gleason e94f53f0e2 Add -z-10 isolate hint 2026-01-10 11:37:12 -06:00
Alex Gleason 413aa93e4f Generate custom images liberally 2025-12-23 05:54:11 -06:00
Alex Gleason 722d138f35 Remove "Vibed with MKStack" 2025-12-02 20:26:37 -06:00
Alex Gleason 0a5e8fc9e0 Bully the robot to utilize git if it's available, and to always read files before writing to them 2025-11-10 17:45:42 -06:00
Alex Gleason 8eddf49e61 Implement NIP-65 relay management
- Replace single relayUrl with NIP-65 compatible relayMetadata structure
- Add RelayListManager component for managing multiple relays with read/write permissions
- Add NostrSync component to automatically sync user's NIP-65 relay list on login
- Update NostrProvider to use relay list instead of single relay
- Remove RelaySelector component and update empty states
- Update AGENTS.md documentation to reflect relay management changes
- Automatically publish relay list changes as NIP-65 events when user is logged in
2025-11-04 23:58:32 -06:00
Alex Gleason fbafc52992 Stronger guidance to call the generate_kind tool 2025-11-03 22:33:18 -06:00
sam cc393a266c refactor docs into the appropriate dm doc file 2025-10-23 18:17:51 +02:00
sam dbacdbc8ac update docs regarding default enabled state, and with info on all messaging components so that there's a better base for custom UIs 2025-10-21 21:46:22 +07:00
sam 69b314c831 wip - document DMs to the LLM 2025-10-21 21:28:57 +07:00
Alex Gleason 3f21df473b Try copying in some of bolt.diy's system prompt 2025-10-12 19:17:32 -05:00
Alex Gleason 1f2fa9d03e Add docs section to AGENTS.md 2025-10-01 00:32:03 -05:00
Alex Gleason 5c8e74b484 Move some more info out of AGENTS.md into docs/ 2025-10-01 00:23:52 -05:00
Alex Gleason b00b19a4bd Add docs/ dir, move AI chat lingo to docs/AI_CHAT.md 2025-10-01 00:13:44 -05:00
lemonknowsall 6ffa656680 agent instructions to assist with AI 1-shot 2025-09-28 11:18:27 -07:00
lemonknowsall c669dd3604 added error handling and more instruction 2025-09-27 21:29:00 -07:00
lemonknowsall 6980497532 Add Shakespeare AI hook and agent instruction 2025-09-27 21:29:00 -07:00
Alex Gleason 57c646f919 Revert tailwindcss changes, @apply is fine actually
Revert "Remove all @apply usage from index.css"

This reverts commit 81fae13219.

Revert "Add TailwindCSS @apply guidelines"

This reverts commit 3aedc574d7.
2025-09-27 22:23:38 -05:00
Alex Gleason 81fae13219 Remove all @apply usage from index.css
- Convert @apply border-border to pure CSS: border-color: hsl(var(--border))
- Convert @apply bg-background text-foreground to pure CSS equivalents
- Update comment to reflect complete @apply removal
- Update AGENTS.md to strengthen prohibition language
- Maintain all theming functionality with pure CSS custom properties
2025-09-26 21:15:31 -05:00
Alex Gleason 3aedc574d7 Add TailwindCSS @apply guidelines
- Document prohibition of @apply at-rule in AGENTS.md
- Add explanatory comment in index.css about @apply policy
- Promote component-driven styling approach over @apply usage
- Note exceptions for shadcn/ui base layer styles
2025-09-26 20:59:43 -05:00
Alex Gleason 03578ab05d Add information about connecting to multiple relays 2025-09-15 20:27:51 -05:00
Alex Gleason 849693416a Add git commit requirement to validation process
- Include creating a git commit as step 5 in validation priority order
- Add git commit to minimum requirements for completing changes
- Ensures work is properly saved after validation
2025-09-11 22:12:20 -05:00
Alex Gleason 3701c14c37 AGENTS.md: make "validating your changes" more flexible to different environments 2025-09-08 13:44:59 -05:00
Alex Gleason ca9c88b5ea AGENTS.md: generalize tool names 2025-09-08 03:22:35 -05:00