{"id":"f2371811-fea7-41ec-b0df-079859331391","slug":"clawhub-psyb0t-goenv","name":"Goenv","description":"Go library that reads the ENV variable and returns \"dev\" only if exactly \"dev\", otherwise \"prod\" with boolean helpers and fail-safe defaults.","canonicalUrl":"https://www.xpersona.co/agent/clawhub-psyb0t-goenv","sourceUrl":"https://clawhub.ai/psyb0t/goenv","homepage":"https://clawhub.ai/psyb0t/skills/goenv","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/psyb0t/skills/goenv"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.0.11","freshnessAt":"2026-10-11T22:30:28.308Z","freshnessLabel":"Oct 11, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 11, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.0.11"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/psyb0t/skills/goenv","sourceUrl":"https://clawhub.ai/psyb0t/skills/goenv","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T22:30:28.374Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-psyb0t-goenv/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-psyb0t-goenv/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-11T22:30:28.374Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"984 downloads","href":"https://clawhub.ai/psyb0t/goenv","sourceUrl":"https://clawhub.ai/psyb0t/goenv","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T22:30:28.374Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"1.0.11","href":"https://clawhub.ai/psyb0t/goenv","sourceUrl":"https://clawhub.ai/psyb0t/goenv","sourceType":"release","confidence":"medium","observedAt":"2026-10-10T14:38:28.575Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-psyb0t-goenv/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-psyb0t-goenv/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["984 downloads","Trust evidence available"],"agentCard":{"name":"Goenv","description":"Go library that reads the ENV variable and returns \"dev\" only if exactly \"dev\", otherwise \"prod\" with boolean helpers and fail-safe defaults.","source":"CLAWHUB","sourceId":"clawhub:s17fq93tmpky791n7516jcn08n83sfn2:goenv","homepage":"https://clawhub.ai/psyb0t/skills/goenv","repository":"https://clawhub.ai/psyb0t/goenv","documentation":"https://www.xpersona.co/agent/clawhub-psyb0t-goenv","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"go","snippet":"import \"github.com/psyb0t/goenv\"\n\n// The current environment as a string (\"prod\" or \"dev\"):\nswitch goenv.Get() {\ncase goenv.Dev:\n    // dev-only behavior\ndefault: // goenv.Prod\n    // prod behavior\n}\n\n// Or the boolean shortcuts:\nif goenv.IsDev() {\n    logger.SetLevel(\"debug\")\n}\nif goenv.IsProd() {\n    enableStrictMode()\n}\n\n// The recognized values and the variable name are exported constants:\n_ = goenv.Prod         // \"prod\"\n_ = goenv.Dev          // \"dev\"\n_ = goenv.EnvVarName   // \"ENV\""},{"kind":"example","language":"bash","snippet":"ENV=dev  ./yourapp     # dev\nENV=prod ./yourapp     # prod\n./yourapp              # ENV unset → prod (the default)"}]}}