mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
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.
This commit is contained in:
3 files changed
+93
-20
No files matched your search
@@ -800,26 +800,6 @@ const events = await nostr.query(
|
||||
4. **Security considerations**: Always use `naddr1` for addressable events instead of just the `d` tag value, as `naddr1` contains the author pubkey needed to create secure filters
|
||||
5. **Error handling**: Gracefully handle invalid or unsupported NIP-19 identifiers with 404 responses
|
||||
|
||||
### Nostr Edit Profile
|
||||
|
||||
To include an Edit Profile form, place the `EditProfileForm` component in the project:
|
||||
|
||||
```tsx
|
||||
import { EditProfileForm } from "@/components/EditProfileForm";
|
||||
|
||||
function EditProfilePage() {
|
||||
return (
|
||||
<div>
|
||||
{/* you may want to wrap this in a layout or include other components depending on the project ... */}
|
||||
|
||||
<EditProfileForm />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
The `EditProfileForm` component displays just the form. It requires no props, and will "just work" automatically.
|
||||
|
||||
### Uploading Files on Nostr
|
||||
|
||||
Use the `useUploadFile` hook to upload files. This hook uses Blossom servers for file storage and returns NIP-94 compatible tags.
|
||||
|
||||
Reference in new issue
Block a user