agentleFS
vaquarkhanvaquarkhan/web3-agent-skills/skills/skill-10-identity-did/SKILL.md

skill-10-identity-did

Skill2 starsChanged 6 months agoMITView on GitHub

Manages decentralized identity including DIDs, verifiable credentials, ENS names, ZK-KYC, and on-chain attestations. Use for identity verification, name resolution, or credential workflows.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create DID document with verification methods (public keys) and service endpoints.

    line 35
  2. Distinctive:

    Use W3C VC Data Model v2

    line 43
  3. Distinctive:

    Verify: check signature, revocation status, schema compliance

    line 45
  4. Distinctive:

    Use for reputation, KYC status, guild membership, and compliance proofs.

    line 74
  5. Distinctive:

    Never store PII on-chain

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Identity (DID)

When to Use

  • Creating or resolving Decentralized Identifiers (DIDs)
  • Issuing/verifying Verifiable Credentials (VCs)
  • Registering or resolving ENS names
  • Implementing ZK-KYC (prove eligibility without revealing PII)
  • Working with on-chain attestations (EAS, Verax)

Prerequisites

  • MCP: blockchain-rpc-server, compliance-screening-server
  • Skill-09 for KYC/regulatory context

Workflow

1. DID Methods

MethodFormatChain
did:ethrdid:ethr:0x...Ethereum
did:pkhdid:pkh:eip155:1:0x...Multi-chain
did:ionSidetree on BitcoinBitcoin L2
did:webHTTPS-hostedOff-chain

Create DID document with verification methods (public keys) and service endpoints.

2. Verifiable Credentials

Issuer → signs VC → Holder stores → Verifier requests proof
  • Use W3C VC Data Model v2
  • Sign with EthereumEip712Signature2021 or Ed25519Signature2020
  • Verify: check signature, revocation status, schema compliance

3. ENS

  • Resolve: eth_resolver.resolve(name, data)
  • Register via ETH Registrar Controller
  • Set records: address, text (email, url, avatar), contenthash (IPFS)
  • Reverse resolution: set addr.reverse record

4. ZK-KYC

Prove attributes without revealing identity:

  1. User completes KYC with issuer off-chain
  2. Issuer provides signed credential or Semaphore identity
  3. User generates ZK proof of membership/eligibility
  4. Verifier checks proof on-chain (no PII exposed)

Protocols: Polygon ID, World ID, Semaphore, Sismo

5. On-Chain Attestations

Ethereum Attestation Service (EAS):

eas.attest(AttestationRequest({
  schema: schemaUID,
  data: AttestationRequestData({ recipient, expirationTime, revocable, refUID, data, value })
}));

Use for reputation, KYC status, guild membership, and compliance proofs.

Privacy Rules

  • Never store PII on-chain
  • Minimize credential disclosure (selective disclosure proofs)
  • Honor GDPR right-to-erasure for off-chain identity data

References

  • references/did-methods.md
  • references/eas-schemas.md

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.