stellar skill tells agents not to capture contract IDs but not how to get one back

Aperta Adatta ai principianti
#2,880 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
65/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli, documentation

Direzione di ricerca

La guida si trova in cmd/soroban-cli/src/commands/skill/SKILL.md, intorno alle righe 45-59, dove sono descritti i comandi alias e la regola di non acquisire gli ID. Esegui stellar contract alias show <name> --network <net> dopo un deploy con --alias per verificare che stampi il solo ID del contratto. È completato quando il testo della skill spiega a un agente come recuperare quell'ID tramite alias e la formulazione resta coerente con il resto del file.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What's wrong:
The skill text says "Do not capture the deployed contract id into a shell variable or .env file" and lists alias ls, alias add and alias rm for managing aliases (v28.1.0 skill/SKILL.md#L45-L59). It never mentions stellar contract alias show <name> --network <net>, which has printed a single contract ID since #1567. Same on main.

Impact:
An agent that needs the ID itself later (to pass to an SDK, a frontend or another tool) has no documented way to get it back, so it falls back to capturing deploy output, which the skill forbids and the Agent CLI build-and-deploy guide models. The skill ships inside the binary, so agents read it before any docs page.

How we found it:
Reading the skill alongside the Agent CLI guides while reviewing HackMeridian 2026 hackathon repos (147 public repos), where deploy scripts captured contract IDs from stdout. Checked against v28.1.0 and main on 1 November 2026.

Outcome we're after:
An agent following the skill can get a deployed contract's ID back by its alias without capturing deploy output. How to get there is up to the implementer.

How to check:

  • Following only the skill text, an agent can deploy with --alias and later print that contract's ID.
  • stellar skill output on the next release reflects it.

Related: #2727 (added the skill, for #2409), stellar-docs build-and-deploy guide (separate docs issue).

Lingua principale
Rust
Stelle
129
Fork
153
Merge medio
2g 13h
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stellar/stellar-cli

Tutte le issue di stellar/stellar-cli

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.